共用方式為


WebView.CreatePrintDocumentAdapter 方法

定義

多載

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) 需要使用者提供列印檔名稱。

android.webkit.WebView.createPrintDocumentAdapter()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

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 進行列印。 如有必要,應用程式可能會使用包裝在所傳回物件周圍並觀察 onStart 和 onFinish 方法的自定義 PrintDocumentAdapter 實例,暫時隱藏可見的 WebView。 如需相關資訊,請參閱 android.print.PrintDocumentAdapter

android.webkit.WebView.createPrintDocumentAdapter(java.lang.String)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於