PrintDocumentAdapter

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.

Nested types

Fields

public static final String EXTRA_PRINT_PREVIEW = "EXTRA_PRINT_PREVIEW" source

Constructors

public PrintDocumentAdapter() empty body source

Methods

public void onStart() empty body source
public abstract void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, CancellationSignal cancellationSignal, LayoutResultCallback callback, Bundle extras) source
public abstract void onWrite(PageRange[] pages, ParcelFileDescriptor destination, CancellationSignal cancellationSignal, WriteResultCallback callback) source
public void onFinish() empty body source

Made 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.