Dil

PrintDocumentInfo.Builder.SetContentType(PrintContentType) Method

Definition

Sets the content type.

[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

Parameters

type
PrintContentType

The content type. Value is one of the following: PrintDocumentInfo.CONTENT_TYPE_UNKNOWN; PrintDocumentInfo.CONTENT_TYPE_DOCUMENT; PrintDocumentInfo.CONTENT_TYPE_PHOTO

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the content type.

Default: PrintDocumentInfo.CONTENT_TYPE_DOCUMENT

Android reference for android.print.PrintDocumentInfo.Builder.setContentType.

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