PrintDocumentInfo.Builder.SetContentType(PrintContentType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.