java.lang.Object | |
↳ | android.print.PrintJobInfo |
This class represents the description of a print job. The print job state includes properties such as its id, print attributes used for generating the content, and so on. Note that the print jobs state may change over time and this class represents a snapshot of this state.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PrintJobInfo.Builder | Builder for creating a PrintJobInfo . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATE_BLOCKED | Print job state: The print job is blocked. | |||||||||
int | STATE_CANCELED | Print job state: The print job is canceled. | |||||||||
int | STATE_COMPLETED | Print job state: The print job is successfully printed. | |||||||||
int | STATE_CREATED | Print job state: The print job is being created but not yet ready to be printed. | |||||||||
int | STATE_FAILED | Print job state: The print job was printing but printing failed. | |||||||||
int | STATE_QUEUED | Print job state: The print jobs is created, it is ready to be printed and should be processed. | |||||||||
int | STATE_STARTED | Print job state: The print job is being printed. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Gets the print job attributes.
| |||||||||||
Gets the number of copies.
| |||||||||||
Gets the wall time in millisecond when this print job was created.
| |||||||||||
Gets the unique print job id.
| |||||||||||
Gets the human readable job label.
| |||||||||||
Gets the included pages.
| |||||||||||
Gets the unique target printer id.
| |||||||||||
Gets the current job state.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Print job state: The print job is blocked.
Next valid states: STATE_FAILED
, STATE_CANCELED
,
STATE_STARTED
Print job state: The print job is canceled. This is a terminal state.
Next valid states: None
Print job state: The print job is successfully printed. This is a terminal state.
Next valid states: None
Print job state: The print job is being created but not yet ready to be printed.
Next valid states: STATE_QUEUED
Print job state: The print job was printing but printing failed.
Next valid states: STATE_CANCELED
, STATE_STARTED
Print job state: The print jobs is created, it is ready to be printed and should be processed.
Next valid states: STATE_STARTED
, STATE_FAILED
,
STATE_CANCELED
Print job state: The print job is being printed.
Next valid states: STATE_COMPLETED
, STATE_FAILED
,
STATE_CANCELED
, STATE_BLOCKED
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Gets the print job attributes.
Gets the number of copies.
Gets the wall time in millisecond when this print job was created.
Gets the human readable job label.
Gets the included pages.
null
if not set.
Gets the unique target printer id.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
parcel | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|