public abstract static class PrintDocumentAdapter.WriteResultCallback extends Object
PrintDocumentAdapter.onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal,
WriteResultCallback)
.Constructor and Description |
---|
WriteResultCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onWriteCancelled()
Notifies that write was cancelled as a result of a cancellation request.
|
void |
onWriteFailed(CharSequence error)
Notifies that an error occurred while writing the data.
|
void |
onWriteFinished(PageRange[] pages)
Notifies that all the data was written.
|
public void onWriteFinished(PageRange[] pages)
pages
- The pages that were written. Cannot be null
or empty.public void onWriteFailed(CharSequence error)
error
- The localized error message.
shown to the user. May be null
if error is unknown.public void onWriteCancelled()