Language

PrinterCapabilitiesInfo.Builder.AddMediaSize Method

Definition

Adds a supported media size.

[Android.Runtime.Register("addMediaSize", "(Landroid/print/PrintAttributes$MediaSize;Z)Landroid/print/PrinterCapabilitiesInfo$Builder;", "")]
public Android.Print.PrinterCapabilitiesInfo.Builder AddMediaSize(Android.Print.PrintAttributes.MediaSize mediaSize, bool isDefault);
[<Android.Runtime.Register("addMediaSize", "(Landroid/print/PrintAttributes$MediaSize;Z)Landroid/print/PrinterCapabilitiesInfo$Builder;", "")>]
member this.AddMediaSize : Android.Print.PrintAttributes.MediaSize * bool -> Android.Print.PrinterCapabilitiesInfo.Builder

Parameters

mediaSize
PrintAttributes.MediaSize

A media size. This value cannot be null.

isDefault
Boolean

Whether this is the default.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Adds a supported media size.

Required: Yes

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

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