public final class PrintDocument extends Object
Note: All methods of this class must be executed on the main application thread.
Modifier and Type | Method and Description |
---|---|
ParcelFileDescriptor |
getData()
Gets the data associated with this document.
|
PrintDocumentInfo |
getInfo()
Gets the
PrintDocumentInfo that describes this document. |
public PrintDocumentInfo getInfo()
PrintDocumentInfo
that describes this document.public ParcelFileDescriptor getData()
Note: It is a responsibility of the client to open a stream to the returned file descriptor, fully read the data, and close the file descriptor.