Class of android.print · PrintDocumentAdapter.java · Android's reference
public abstract class PrintDocumentAdapter
The content of a print job, which the app lays out and writes when the print system asks.
public static final String EXTRA_PRINT_PREVIEW = "EXTRA_PRINT_PREVIEW" sourcepublic PrintDocumentAdapter() empty body sourcepublic void onStart() empty body sourcepublic abstract void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, CancellationSignal cancellationSignal, LayoutResultCallback callback, Bundle extras) sourcepublic abstract void onWrite(PageRange[] pages, ParcelFileDescriptor destination, CancellationSignal cancellationSignal, WriteResultCallback callback) sourcepublic void onFinish() empty body sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.