語言

WebView.CreatePrintDocumentAdapter 方法

定義

多載

名稱 Description
CreatePrintDocumentAdapter()
已淘汰.

此會員已被棄用。

CreatePrintDocumentAdapter(String)

建立一個 PrintDocumentAdapter,提供此 WebView 的內容以便列印。

CreatePrintDocumentAdapter()

警告

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

傳回

屬性

備註

此會員已被棄用。 使用 #createPrintDocumentAdapter(String) 時,使用者必須提供列印文件名稱。

Java 文件 android.webkit.WebView.createPrintDocumentAdapter()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

CreatePrintDocumentAdapter(String)

建立一個 PrintDocumentAdapter,提供此 WebView 的內容以便列印。

[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

參數

documentName
String

列印文件的使用者名稱。 請參閱 android.print.PrintDocumentInfo

傳回

屬性

備註

建立一個 PrintDocumentAdapter,提供此 WebView 的內容以便列印。

轉接器透過將 WebView 內容轉換成 PDF 串流來運作。 WebView 在轉換過程中無法繪製——任何此類繪製都未定義。 建議使用專用的螢幕外 WebView 來列印。 必要時,應用程式可透過自訂的 PrintDocumentAdapter 實例包裹回傳物件,並觀察 onStart 與 onFinish 方法,暫時隱藏可見的 WebView。 如需相關資訊,請參閱 android.print.PrintDocumentAdapter

Java 文件 android.webkit.WebView.createPrintDocumentAdapter(java.lang.String)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於