public abstract static class PrintDocumentAdapter.LayoutResultCallback extends Object
PrintDocumentAdapter.onLayout(PrintAttributes, PrintAttributes,
CancellationSignal, LayoutResultCallback, Bundle)
.Constructor and Description |
---|
LayoutResultCallback() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void onLayoutFinished(PrintDocumentInfo info, boolean changed)
info
- An info object describing the document. Cannot be null
.changed
- Whether the layout changed.PrintDocumentInfo
public void onLayoutFailed(CharSequence error)
error
- The localized error message.
shown to the user. May be null
if error is unknown.public void onLayoutCancelled()