Compartir a través de


PrintDocumentAdapter.OnWrite Method

Definition

Called when specific pages of the content should be written in the form of a PDF file to the given file descriptor.

[Android.Runtime.Register("onWrite", "([Landroid/print/PageRange;Landroid/os/ParcelFileDescriptor;Landroid/os/CancellationSignal;Landroid/print/PrintDocumentAdapter$WriteResultCallback;)V", "GetOnWrite_arrayLandroid_print_PageRange_Landroid_os_ParcelFileDescriptor_Landroid_os_CancellationSignal_Landroid_print_PrintDocumentAdapter_WriteResultCallback_Handler")]
public abstract void OnWrite (Android.Print.PageRange[]? pages, Android.OS.ParcelFileDescriptor? destination, Android.OS.CancellationSignal? cancellationSignal, Android.Print.PrintDocumentAdapter.WriteResultCallback? callback);
[<Android.Runtime.Register("onWrite", "([Landroid/print/PageRange;Landroid/os/ParcelFileDescriptor;Landroid/os/CancellationSignal;Landroid/print/PrintDocumentAdapter$WriteResultCallback;)V", "GetOnWrite_arrayLandroid_print_PageRange_Landroid_os_ParcelFileDescriptor_Landroid_os_CancellationSignal_Landroid_print_PrintDocumentAdapter_WriteResultCallback_Handler")>]
abstract member OnWrite : Android.Print.PageRange[] * Android.OS.ParcelFileDescriptor * Android.OS.CancellationSignal * Android.Print.PrintDocumentAdapter.WriteResultCallback -> unit

Parameters

pages
PageRange[]

The pages whose content to print - non-overlapping in ascending order.

destination
ParcelFileDescriptor

The destination file descriptor to which to write.

cancellationSignal
CancellationSignal

Signal for observing cancel writing requests.

callback
PrintDocumentAdapter.WriteResultCallback

Callback to inform the system for the write result.

Attributes

Remarks

Java documentation for android.print.PrintDocumentAdapter.onWrite(android.print.PageRange[], android.os.ParcelFileDescriptor, android.os.CancellationSignal, android.print.WriteResultCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also