语言

PrintDocumentInfo.Builder.SetContentType(PrintContentType) 方法

定义

设置内容类型。

[Android.Runtime.Register("setContentType", "(I)Landroid/print/PrintDocumentInfo$Builder;", "")]
public Android.Print.PrintDocumentInfo.Builder SetContentType(Android.Print.PrintContentType type);
[<Android.Runtime.Register("setContentType", "(I)Landroid/print/PrintDocumentInfo$Builder;", "")>]
member this.SetContentType : Android.Print.PrintContentType -> Android.Print.PrintDocumentInfo.Builder

参数

type
PrintContentType

内容类型。 值为下列值之一: Unknown; ; DocumentPhoto

返回

此生成器。 此值不能为 null。

特性

注解

设置内容类型。

默认值:PrintDocumentInfo.CONTENT_TYPE_DOCUMENT

Android 参考。android.print.PrintDocumentInfo.Builder.setContentType

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于