public static abstract class PrintDocumentAdapter.WriteResultCallback
extends Object
java.lang.Object | |
↳ | android.print.PrintDocumentAdapter.WriteResultCallback |
用于实现 onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal, WriteResultCallback)
结果回调的基类。
Public methods |
|
---|---|
void |
onWriteCancelled() 通知由于取消请求而导致写入被取消。 |
void |
onWriteFailed(CharSequence error) 通知写入数据时发生错误。 |
void |
onWriteFinished(PageRange[] pages) 通知所有数据都已写入。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
void onWriteFailed (CharSequence error)
通知写入数据时发生错误。
Parameters | |
---|---|
error |
CharSequence : The localized error message. shown to the user. May be null if error is unknown. |
void onWriteFinished (PageRange[] pages)
通知所有数据都已写入。
Parameters | |
---|---|
pages |
PageRange : The pages that were written. Cannot be null or empty. |