to top
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 ()

Added in API level 19

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

public void onLayoutFailed (CharSequence error)

Added in API level 19

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)

Added in API level 19

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.