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 属性许可证中所述的术语使用。

适用于