Dil

PrinterCapabilitiesInfo.Builder.SetColorModes(Int32, Int32) Method

Definition

Sets the color modes.

[Android.Runtime.Register("setColorModes", "(II)Landroid/print/PrinterCapabilitiesInfo$Builder;", "")]
public Android.Print.PrinterCapabilitiesInfo.Builder SetColorModes(int colorModes, int defaultColorMode);
[<Android.Runtime.Register("setColorModes", "(II)Landroid/print/PrinterCapabilitiesInfo$Builder;", "")>]
member this.SetColorModes : int * int -> Android.Print.PrinterCapabilitiesInfo.Builder

Parameters

colorModes
Int32

The color mode bit mask. Value is either 0 or a combination of the following: PrintAttributes.COLOR_MODE_MONOCHROME; PrintAttributes.COLOR_MODE_COLOR

defaultColorMode
Int32

The default color mode. Must be exactly one of the following: PrintAttributes.COLOR_MODE_MONOCHROME; PrintAttributes.COLOR_MODE_COLOR

Returns

This builder. Note: On platform version 19 (KitKat) specifying only PrintAttributes#COLOR_MODE_MONOCHROME leads to a print spooler crash. Hence, you should declare either both color modes or PrintAttributes#COLOR_MODE_COLOR. This value cannot be null.

Attributes

Remarks

Sets the color modes.

Required: Yes

Android reference for android.print.PrinterCapabilitiesInfo.Builder.setColorModes.

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