Most visited

Recently visited

Added in API level 19

PrintDocumentAdapter.LayoutResultCallback

public static abstract class PrintDocumentAdapter.LayoutResultCallback
extends Object

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


用于实现 onLayout(PrintAttributes, PrintAttributes, CancellationSignal, LayoutResultCallback, Bundle)结果回调的基类。

Summary

Public methods

void onLayoutCancelled()

通知布局因取消请求而被取消。

void onLayoutFailed(CharSequence error)

通知在布置文档时发生错误。

void onLayoutFinished(PrintDocumentInfo info, boolean changed)

通知布局完成以及内容是否更改。

Inherited methods

From class java.lang.Object

Public methods

onLayoutCancelled

Added in API level 19
void onLayoutCancelled ()

通知布局因取消请求而被取消。

onLayoutFailed

Added in API level 19
void onLayoutFailed (CharSequence error)

通知在布置文档时发生错误。

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

onLayoutFinished

Added in API level 19
void onLayoutFinished (PrintDocumentInfo info, 
                boolean changed)

通知布局完成以及内容是否更改。

Parameters
info PrintDocumentInfo: An info object describing the document. Cannot be null.
changed boolean: Whether the layout changed.

也可以看看:

Hooray!