Android.Webkit.WebView.CreatePrintDocumentAdapter Method
Creates a PrintDocumentAdapter that provides the content of this Webview for printing.

Syntax

[Android.Runtime.Register("createPrintDocumentAdapter", "(Ljava/lang/String;)Landroid/print/PrintDocumentAdapter;", "GetCreatePrintDocumentAdapter_Ljava_lang_String_Handler")]
public virtual Android.Print.PrintDocumentAdapter CreatePrintDocumentAdapter (string documentName)

Parameters

documentName
The user-facing name of the printed document. See Android.Print.PrintDocumentInfo

Returns

Documentation for this section has not yet been entered.

Remarks

Creates a PrintDocumentAdapter that provides the content of this Webview for printing. The adapter works by converting the Webview contents to a PDF stream. The Webview cannot be drawn during the conversion process - any such draws are undefined. It is recommended to use a dedicated off screen Webview for the printing. If necessary, an application may temporarily hide a visible WebView by using a custom PrintDocumentAdapter instance wrapped around the object returned and observing the onStart and onFinish methods. See Android.Print.PrintDocumentAdapter for more information.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1