Java android.print PrintDocumentAdapter fields, constructors, methods, implement or subclass

Example usage for Java android.print PrintDocumentAdapter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.print PrintDocumentAdapter.

The text is from its open source code.

Method

voidonLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, CancellationSignal cancellationSignal, LayoutResultCallback callback, Bundle extras)
Called when the print attributes (page size, density, etc) changed giving you a chance to layout the content such that it matches the new constraints.
voidonStart()
Called when printing starts.
voidonWrite(PageRange[] pages, ParcelFileDescriptor destination, CancellationSignal cancellationSignal, WriteResultCallback callback)
Called when specific pages of the content should be written in the form of a PDF file to the given file descriptor.