Most visited

Recently visited

Added in API level 19

PrintDocumentAdapter.WriteResultCallback

public static abstract class PrintDocumentAdapter.WriteResultCallback
extends Object

java.lang.Object
   ↳ android.print.PrintDocumentAdapter.WriteResultCallback


用于实现 onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal, WriteResultCallback)结果回调的基类。

Summary

Public methods

void onWriteCancelled()

通知由于取消请求而导致写入被取消。

void onWriteFailed(CharSequence error)

通知写入数据时发生错误。

void onWriteFinished(PageRange[] pages)

通知所有数据都已写入。

Inherited methods

From class java.lang.Object

Public methods

onWriteCancelled

Added in API level 19
void onWriteCancelled ()

通知由于取消请求而导致写入被取消。

onWriteFailed

Added in API level 19
void onWriteFailed (CharSequence error)

通知写入数据时发生错误。

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

onWriteFinished

Added in API level 19
void onWriteFinished (PageRange[] pages)

通知所有数据都已写入。

Parameters
pages PageRange: The pages that were written. Cannot be null or empty.

Hooray!