public static abstract class PrintDocumentAdapter.LayoutResultCallback
extends Object
| java.lang.Object | |
| android.print.PrintDocumentAdapter.LayoutResultCallback | |
用于实现 onLayout(PrintAttributes, PrintAttributes, CancellationSignal, LayoutResultCallback, Bundle)结果回调的基类。
公共方法(Public methods) |
|
|---|---|
void |
onLayoutCancelled() 通知布局因取消请求而被取消。 |
void |
onLayoutFailed(CharSequence error) 通知在布置文档时发生错误。 |
void |
onLayoutFinished(PrintDocumentInfo info, boolean changed) 通知布局完成以及内容是否更改。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
void onLayoutFailed (CharSequence error)
通知在布置文档时发生错误。
| 参数(Parameters) | |
|---|---|
error |
CharSequence: The localized error message. shown to the user. May be null if error is unknown. |
void onLayoutFinished (PrintDocumentInfo info, boolean changed)
通知布局完成以及内容是否更改。
| 参数(Parameters) | |
|---|---|
info |
PrintDocumentInfo: An info object describing the document. Cannot be null. |
changed |
boolean: Whether the layout changed. |
也可以看看: