android.print.PrintDocumentAdapter

E745336

android.print.PrintDocumentAdapter is an Android framework class that applications implement to generate and manage printable content for the system print service.

Try in SPARQL Jump to: Statements Referenced by

Statements (49)

Predicate Object
instanceOf Android framework class
java.lang.Object subclass
belongsToPlatform Android NERFINISHED
callbackRole LayoutResultCallback is used to report layout success or failure
WriteResultCallback is used to report write success or failure
category printing API
definedInPackage android.print
designPattern callback-based adapter pattern
documentationUrl https://developer.android.com/reference/android/print/PrintDocumentAdapter
extendedBy android.print.pdf.PrintedPdfDocument-based adapters
hasMethod onFinish
onLayout
onLayoutCancelled
onStart
onWrite
onWriteCancelled
hasNestedClass android.print.PrintDocumentAdapter.LayoutResultCallback
android.print.PrintDocumentAdapter.WriteResultCallback NERFINISHED
interactsWith android.os.CancellationSignal
android.print.PageRange NERFINISHED
android.print.PrintAttributes
android.print.PrintDocumentAdapter.LayoutResultCallback
android.print.PrintDocumentAdapter.WriteResultCallback NERFINISHED
android.print.PrintDocumentInfo
android.print.PrintManager NERFINISHED
introducedInAndroidVersion Android 4.4 KitKat NERFINISHED
introducedInApiLevel 19
lifecycleCallback onFinish is called when printing finishes
onStart is called when printing starts
methodSignature void onFinish()
void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, CancellationSignal cancellationSignal, PrintDocumentAdapter.LayoutResultCallback callback, Bundle extras)
void onLayoutCancelled()
void onStart()
void onWrite(PageRange[] pages, ParcelFileDescriptor destination, CancellationSignal cancellationSignal, PrintDocumentAdapter.WriteResultCallback callback)
void onWriteCancelled()
partOf Android printing framework
requiresPermission no special permission; used via PrintManager
responsibleFor handling layout cancellation
handling write cancellation
reporting document layout results
writing document pages to a file descriptor
supports printing to PDF
printing to physical printers via print service
threadingConstraint callback methods are invoked on the main thread
typicalUsage implemented as an anonymous inner class in an Activity or Fragment
usedBy Android applications
usedFor creating printable content
managing print jobs
usedWith android.print.PrintManager.print

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Android system print framework exposesClass android.print.PrintDocumentAdapter