Share via


WebView.CreatePrintDocumentAdapter Method

Definition

Overloads

CreatePrintDocumentAdapter()
Obsolete.

This member is deprecated.

CreatePrintDocumentAdapter(String)

Creates a PrintDocumentAdapter that provides the content of this WebView for printing.

CreatePrintDocumentAdapter()

Caution

deprecated

This member is deprecated.

[Android.Runtime.Register("createPrintDocumentAdapter", "()Landroid/print/PrintDocumentAdapter;", "GetCreatePrintDocumentAdapterHandler")]
[System.Obsolete("deprecated")]
public virtual Android.Print.PrintDocumentAdapter? CreatePrintDocumentAdapter ();
[<Android.Runtime.Register("createPrintDocumentAdapter", "()Landroid/print/PrintDocumentAdapter;", "GetCreatePrintDocumentAdapterHandler")>]
[<System.Obsolete("deprecated")>]
abstract member CreatePrintDocumentAdapter : unit -> Android.Print.PrintDocumentAdapter
override this.CreatePrintDocumentAdapter : unit -> Android.Print.PrintDocumentAdapter

Returns

Attributes

Remarks

This member is deprecated. Use #createPrintDocumentAdapter(String) which requires user to provide a print document name.

Java documentation for android.webkit.WebView.createPrintDocumentAdapter().

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

CreatePrintDocumentAdapter(String)

Creates a PrintDocumentAdapter that provides the content of this WebView for printing.

[Android.Runtime.Register("createPrintDocumentAdapter", "(Ljava/lang/String;)Landroid/print/PrintDocumentAdapter;", "GetCreatePrintDocumentAdapter_Ljava_lang_String_Handler")]
public virtual Android.Print.PrintDocumentAdapter CreatePrintDocumentAdapter (string documentName);
[<Android.Runtime.Register("createPrintDocumentAdapter", "(Ljava/lang/String;)Landroid/print/PrintDocumentAdapter;", "GetCreatePrintDocumentAdapter_Ljava_lang_String_Handler")>]
abstract member CreatePrintDocumentAdapter : string -> Android.Print.PrintDocumentAdapter
override this.CreatePrintDocumentAdapter : string -> Android.Print.PrintDocumentAdapter

Parameters

documentName
String

The user-facing name of the printed document. See android.print.PrintDocumentInfo

Returns

Attributes

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.

Java documentation for android.webkit.WebView.createPrintDocumentAdapter(java.lang.String).

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