Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static abstract class

PrintDocumentAdapter.LayoutResultCallback

extends Object
java.lang.Object
   ↳ android.print.PrintDocumentAdapter.LayoutResultCallback

Class Overview

Base class for implementing a callback for the result of onLayout(PrintAttributes, PrintAttributes, CancellationSignal, LayoutResultCallback, Bundle) .

Summary

Public Methods
void onLayoutCancelled ()
Notifies that layout was cancelled as a result of a cancellation request.
void onLayoutFailed ( CharSequence error)
Notifies that an error occurred while laying out the document.
void onLayoutFinished ( PrintDocumentInfo info, boolean changed)
Notifies that the layout finished and whether the content changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void onLayoutCancelled ()

Notifies that layout was cancelled as a result of a cancellation request.

public void onLayoutFailed ( CharSequence error)

Notifies that an error occurred while laying out the document.

Parameters
error The localized error message. shown to the user. May be null if error is unknown.

public void onLayoutFinished ( PrintDocumentInfo info, boolean changed)

Notifies that the layout finished and whether the content changed.

Parameters
info An info object describing the document. Cannot be null .
changed Whether the layout changed.