PrintDocumentAdapter.OnWrite Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 to inform the system for the write result.
- Attributes
Remarks
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.