Added in API level 19

MediaSize


class MediaSize
kotlin.Any
   ↳ android.print.PrintAttributes.MediaSize

This class specifies a supported media size. Media size is the dimension of the media on which the content is printed. For example, the NA_LETTER media size designates a page with size 8.5" x 11".

Summary

Public constructors
MediaSize(id: String, label: String, widthMils: Int, heightMils: Int)

Creates a new instance.

Public methods
PrintAttributes.MediaSize

Returns a new media size instance in a landscape orientation, which is the height is the lesser dimension.

PrintAttributes.MediaSize

Returns a new media size instance in a portrait orientation, which is the height is the greater dimension.

Boolean
equals(other: Any?)

Indicates whether some other object is "equal to" this one.

Int

Gets the media height in mils (thousandths of an inch).

String

Gets the unique media size id.

String
getLabel(packageManager: PackageManager)

Gets the human readable media size label.

Int

Gets the media width in mils (thousandths of an inch).

Int

Boolean

Gets whether this media size is in portrait which is the height is greater or equal to the width.

String

Properties
static PrintAttributes.MediaSize

North America ANSI C media size: 17" x 22" (432mm x 559mm)

static PrintAttributes.MediaSize

North America ANSI D media size: 22" x 34" (559mm x 864mm)

static PrintAttributes.MediaSize

North America ANSI E media size: 34" x 44" (864mm x 1118mm)

static PrintAttributes.MediaSize

North America ANSI F media size: 28" x 40" (711mm x 1016mm)

static PrintAttributes.MediaSize!

ISO A0 media size: 841mm x 1189mm (33.11" x 46.81")

static PrintAttributes.MediaSize!

ISO A1 media size: 594mm x 841mm (23.39" x 33.11")

static PrintAttributes.MediaSize!

ISO A10 media size: 26mm x 37mm (1.02" x 1.46")

static PrintAttributes.MediaSize!

ISO A2 media size: 420mm x 594mm (16.54" x 23.39")

static PrintAttributes.MediaSize!

ISO A3 media size: 297mm x 420mm (11.69" x 16.54")

static PrintAttributes.MediaSize!

ISO A4 media size: 210mm x 297mm (8.27" x 11.69")

static PrintAttributes.MediaSize!

ISO A5 media size: 148mm x 210mm (5.83" x 8.27")

static PrintAttributes.MediaSize!

ISO A6 media size: 105mm x 148mm (4.13" x 5.83")

static PrintAttributes.MediaSize!

ISO A7 media size: 74mm x 105mm (2.91" x 4.13")

static PrintAttributes.MediaSize!

ISO A8 media size: 52mm x 74mm (2.05" x 2.91")

static PrintAttributes.MediaSize!

ISO A9 media size: 37mm x 52mm (1.46" x 2.05")

static PrintAttributes.MediaSize!

ISO B0 media size: 1000mm x 1414mm (39.37" x 55.67")

static PrintAttributes.MediaSize!

ISO B1 media size: 707mm x 1000mm (27.83" x 39.37")

static PrintAttributes.MediaSize!

ISO B10 media size: 31mm x 44mm (1.22" x 1.73")

static PrintAttributes.MediaSize!

ISO B2 media size: 500mm x 707mm (19.69" x 27.83")

static PrintAttributes.MediaSize!

ISO B3 media size: 353mm x 500mm (13.90" x 19.69")

static PrintAttributes.MediaSize!

ISO B4 media size: 250mm x 353mm (9.84" x 13.90")

static PrintAttributes.MediaSize!

ISO B5 media size: 176mm x 250mm (6.93" x 9.84")

static PrintAttributes.MediaSize!

ISO B6 media size: 125mm x 176mm (4.92" x 6.93")

static PrintAttributes.MediaSize!

ISO B7 media size: 88mm x 125mm (3.46" x 4.92")

static PrintAttributes.MediaSize!

ISO B8 media size: 62mm x 88mm (2.44" x 3.46")

static PrintAttributes.MediaSize!

ISO B9 media size: 44mm x 62mm (1.73" x 2.44")

static PrintAttributes.MediaSize!

ISO C0 media size: 917mm x 1297mm (36.10" x 51.06")

static PrintAttributes.MediaSize!

ISO C1 media size: 648mm x 917mm (25.51" x 36.10")

static PrintAttributes.MediaSize!

ISO C10 media size: 28mm x 40mm (1.10" x 1.57")

static PrintAttributes.MediaSize!

ISO C2 media size: 458mm x 648mm (18.03" x 25.51")

static PrintAttributes.MediaSize!

ISO C3 media size: 324mm x 458mm (12.76" x 18.03")

static PrintAttributes.MediaSize!

ISO C4 media size: 229mm x 324mm (9.02" x 12.76")

static PrintAttributes.MediaSize!

ISO C5 media size: 162mm x 229mm (6.38" x 9.02")

static PrintAttributes.MediaSize!

ISO C6 media size: 114mm x 162mm (4.49" x 6.38")

static PrintAttributes.MediaSize!

ISO C7 media size: 81mm x 114mm (3.19" x 4.49")

static PrintAttributes.MediaSize!

ISO C8 media size: 57mm x 81mm (2.24" x 3.19")

static PrintAttributes.MediaSize!

ISO C9 media size: 40mm x 57mm (1.57" x 2.24")

static PrintAttributes.MediaSize!

Japanese JIS B0 media size: 1030mm x 1456mm (40.551" x 57.323")

static PrintAttributes.MediaSize!

Japanese JIS B1 media size: 728mm x 1030mm (28.661" x 40.551")

static PrintAttributes.MediaSize!

Japanese JIS B10 media size: 32mm x 45mm (1.259" x 1.772")

static PrintAttributes.MediaSize!

Japanese JIS B2 media size: 515mm x 728mm (20.276" x 28.661")

static PrintAttributes.MediaSize!

Japanese JIS B3 media size: 364mm x 515mm (14.331" x 20.276")

static PrintAttributes.MediaSize!

Japanese JIS B4 media size: 257mm x 364mm (10.118" x 14.331")

static PrintAttributes.MediaSize!

Japanese JIS B5 media size: 182mm x 257mm (7.165" x 10.118")

static PrintAttributes.MediaSize!

Japanese JIS B6 media size: 128mm x 182mm (5.049" x 7.165")

static PrintAttributes.MediaSize!

Japanese JIS B7 media size: 91mm x 128mm (3.583" x 5.049")

static PrintAttributes.MediaSize!

Japanese JIS B8 media size: 64mm x 91mm (2.52" x 3.583")

static PrintAttributes.MediaSize!

Japanese JIS B9 media size: 45mm x 64mm (1.772" x 2.52")

static PrintAttributes.MediaSize!

Japanese JIS Exec media size: 216mm x 330mm (8.504" x 12.992")

static PrintAttributes.MediaSize!

Japanese Chou2 media size: 111.

static PrintAttributes.MediaSize!

Japanese Chou3 media size: 120mm x 235mm (4.724" x 9.252")

static PrintAttributes.MediaSize!

Japanese Chou4 media size: 90mm x 205mm (3.543" x 8.071")

static PrintAttributes.MediaSize!

Japanese Hagaki media size: 100mm x 148mm (3.937" x 5.827")

static PrintAttributes.MediaSize!

Japanese Kahu media size: 240mm x 322.

static PrintAttributes.MediaSize!

Japanese Kaku2 media size: 240mm x 332mm (9.449" x 13.071")

static PrintAttributes.MediaSize

Japanese Photo L media size: 89mm x 127mm (3.5 x 5")

static PrintAttributes.MediaSize!

Japanese Oufuku media size: 148mm x 200mm (5.827" x 7.874")

static PrintAttributes.MediaSize!

Japanese You4 media size: 105mm x 235mm (4.134" x 9.252")

static PrintAttributes.MediaSize

North America Arch A media size: 9" x 12" (229mm x 305mm)

static PrintAttributes.MediaSize

North America Arch B media size: 12" x 18" (305mm x 457mm)

static PrintAttributes.MediaSize

North America Arch C media size: 18" x 24" (457mm x 610mm)

static PrintAttributes.MediaSize

North America Arch D media size: 24" x 36" (610mm x 914mm)

static PrintAttributes.MediaSize

North America Arch E media size: 36" x 48" (914mm x 1219mm)

static PrintAttributes.MediaSize

North America Arch E1 media size: 30" x 42" (762mm x 1067mm)

static PrintAttributes.MediaSize!

North America Foolscap media size: 8" x 13" (203mm x 330mm)

static PrintAttributes.MediaSize!

North America Government-Letter media size: 8.

static PrintAttributes.MediaSize!

North America Index Card 3x5 media size: 3" x 5" (76mm x 127mm)

static PrintAttributes.MediaSize!

North America Index Card 4x6 media size: 4" x 6" (102mm x 152mm)

static PrintAttributes.MediaSize!

North America Index Card 5x8 media size: 5" x 8" (127mm x 203mm)

static PrintAttributes.MediaSize!

North America Junior Legal media size: 8.

static PrintAttributes.MediaSize!

North America Ledger media size: 17" x 11" (432mm × 279mm)

static PrintAttributes.MediaSize!

North America Legal media size: 8.

static PrintAttributes.MediaSize!

North America Letter media size: 8.

static PrintAttributes.MediaSize!

North America Monarch media size: 7.

static PrintAttributes.MediaSize!

North America Quarto media size: 8" x 10" (203mm x 254mm)

static PrintAttributes.MediaSize

North America Super B media size: 13" x 19" (330mm x 483mm)

static PrintAttributes.MediaSize!

North America Tabloid media size: 11" x 17" (279mm × 432mm)

static PrintAttributes.MediaSize!

Chinese Dai Pa Kai media size: 275mm x 395mm (10.827" x 15.551")

static PrintAttributes.MediaSize!

Chinese Jurro Ku Kai media size: 198mm x 275mm (7.796" x 10.827")

static PrintAttributes.MediaSize!

Chinese Pa Kai media size: 267mm x 389mm (10.512" x 15.315")

static PrintAttributes.MediaSize!

Chinese PRC 1 media size: 102mm x 165mm (4.015" x 6.496")

static PrintAttributes.MediaSize!

Chinese PRC 10 media size: 324mm x 458mm (12.756" x 18.032")

static PrintAttributes.MediaSize!

Chinese PRC 16k media size: 146mm x 215mm (5.749" x 8.465")

static PrintAttributes.MediaSize!

Chinese PRC 2 media size: 102mm x 176mm (4.015" x 6.929")

static PrintAttributes.MediaSize!

Chinese PRC 3 media size: 125mm x 176mm (4.921" x 6.929")

static PrintAttributes.MediaSize!

Chinese PRC 4 media size: 110mm x 208mm (4.330" x 8.189")

static PrintAttributes.MediaSize!

Chinese PRC 5 media size: 110mm x 220mm (4.330" x 8.661")

static PrintAttributes.MediaSize!

Chinese PRC 6 media size: 120mm x 320mm (4.724" x 12.599")

static PrintAttributes.MediaSize!

Chinese PRC 7 media size: 160mm x 230mm (6.299" x 9.055")

static PrintAttributes.MediaSize!

Chinese PRC 8 media size: 120mm x 309mm (4.724" x 12.165")

static PrintAttributes.MediaSize!

Chinese PRC 9 media size: 229mm x 324mm (9.016" x 12.756")

static PrintAttributes.MediaSize!

Chinese ROC 16K media size: 195mm x 270mm (7.677" x 10.629")

static PrintAttributes.MediaSize!

Chinese ROC 8K media size: 270mm x 390mm (10.629" x 15.3543")

static PrintAttributes.MediaSize!

Unknown media size in landscape mode.

static PrintAttributes.MediaSize!

Unknown media size in portrait mode.

Public constructors

MediaSize

Added in API level 19
MediaSize(
    id: String,
    label: String,
    widthMils: Int,
    heightMils: Int)

Creates a new instance.

Parameters
id String: The unique media size id. It is unique amongst other media sizes supported by the printer. This value cannot be null.
label String: The localized human readable label. This value cannot be null.
widthMils Int: The width in mils (thousandths of an inch). Value is 1 or greater
heightMils Int: The height in mils (thousandths of an inch). Value is 1 or greater
Exceptions
java.lang.IllegalArgumentException If the id is empty or the label is empty or the widthMils is less than or equal to zero or the heightMils is less than or equal to zero.

Public methods

asLandscape

Added in API level 19
fun asLandscape(): PrintAttributes.MediaSize

Returns a new media size instance in a landscape orientation, which is the height is the lesser dimension.

Return
PrintAttributes.MediaSize New instance in landscape orientation if this one is in portrait, otherwise this instance. This value cannot be null.

asPortrait

Added in API level 19
fun asPortrait(): PrintAttributes.MediaSize

Returns a new media size instance in a portrait orientation, which is the height is the greater dimension.

Return
PrintAttributes.MediaSize New instance in landscape orientation if this one is in landscape, otherwise this instance. This value cannot be null.

equals

Added in API level 19
fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
obj This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getHeightMils

Added in API level 19
fun getHeightMils(): Int

Gets the media height in mils (thousandths of an inch).

Return
Int The media height. Value is 1 or greater

getId

Added in API level 19
fun getId(): String

Gets the unique media size id. It is unique amongst other media sizes supported by the printer.

This id is defined by the client that generated the media size instance and should not be interpreted by other parties.

Return
String The unique media size id. This value cannot be null.

getLabel

Added in API level 19
fun getLabel(packageManager: PackageManager): String

Gets the human readable media size label.

Parameters
packageManager PackageManager: The package manager for loading the label. This value cannot be null.
Return
String The human readable label. This value cannot be null.

getWidthMils

Added in API level 19
fun getWidthMils(): Int

Gets the media width in mils (thousandths of an inch).

Return
Int The media width. Value is 1 or greater

hashCode

Added in API level 19
fun hashCode(): Int
Return
Int a hash code value for this object.

isPortrait

Added in API level 19
fun isPortrait(): Boolean

Gets whether this media size is in portrait which is the height is greater or equal to the width.

Return
Boolean True if the media size is in portrait, false if it is in landscape.

toString

Added in API level 19
fun toString(): String
Return
String a string representation of the object.

Properties

ANSI_C

Added in API level 31
static val ANSI_C: PrintAttributes.MediaSize

North America ANSI C media size: 17" x 22" (432mm x 559mm)

ANSI_D

Added in API level 31
static val ANSI_D: PrintAttributes.MediaSize

North America ANSI D media size: 22" x 34" (559mm x 864mm)

ANSI_E

Added in API level 31
static val ANSI_E: PrintAttributes.MediaSize

North America ANSI E media size: 34" x 44" (864mm x 1118mm)

ANSI_F

Added in API level 31
static val ANSI_F: PrintAttributes.MediaSize

North America ANSI F media size: 28" x 40" (711mm x 1016mm)

ISO_A0

Added in API level 19
static val ISO_A0: PrintAttributes.MediaSize!

ISO A0 media size: 841mm x 1189mm (33.11" x 46.81")

ISO_A1

Added in API level 19
static val ISO_A1: PrintAttributes.MediaSize!

ISO A1 media size: 594mm x 841mm (23.39" x 33.11")

ISO_A10

Added in API level 19
static val ISO_A10: PrintAttributes.MediaSize!

ISO A10 media size: 26mm x 37mm (1.02" x 1.46")

ISO_A2

Added in API level 19
static val ISO_A2: PrintAttributes.MediaSize!

ISO A2 media size: 420mm x 594mm (16.54" x 23.39")

ISO_A3

Added in API level 19
static val ISO_A3: PrintAttributes.MediaSize!

ISO A3 media size: 297mm x 420mm (11.69" x 16.54")

ISO_A4

Added in API level 19
static val ISO_A4: PrintAttributes.MediaSize!

ISO A4 media size: 210mm x 297mm (8.27" x 11.69")

ISO_A5

Added in API level 19
static val ISO_A5: PrintAttributes.MediaSize!

ISO A5 media size: 148mm x 210mm (5.83" x 8.27")

ISO_A6

Added in API level 19
static val ISO_A6: PrintAttributes.MediaSize!

ISO A6 media size: 105mm x 148mm (4.13" x 5.83")

ISO_A7

Added in API level 19
static val ISO_A7: PrintAttributes.MediaSize!

ISO A7 media size: 74mm x 105mm (2.91" x 4.13")

ISO_A8

Added in API level 19
static val ISO_A8: PrintAttributes.MediaSize!

ISO A8 media size: 52mm x 74mm (2.05" x 2.91")

ISO_A9

Added in API level 19
static val ISO_A9: PrintAttributes.MediaSize!

ISO A9 media size: 37mm x 52mm (1.46" x 2.05")

ISO_B0

Added in API level 19
static val ISO_B0: PrintAttributes.MediaSize!

ISO B0 media size: 1000mm x 1414mm (39.37" x 55.67")

ISO_B1

Added in API level 19
static val ISO_B1: PrintAttributes.MediaSize!

ISO B1 media size: 707mm x 1000mm (27.83" x 39.37")

ISO_B10

Added in API level 19
static val ISO_B10: PrintAttributes.MediaSize!

ISO B10 media size: 31mm x 44mm (1.22" x 1.73")

ISO_B2

Added in API level 19
static val ISO_B2: PrintAttributes.MediaSize!

ISO B2 media size: 500mm x 707mm (19.69" x 27.83")

ISO_B3

Added in API level 19
static val ISO_B3: PrintAttributes.MediaSize!

ISO B3 media size: 353mm x 500mm (13.90" x 19.69")

ISO_B4

Added in API level 19
static val ISO_B4: PrintAttributes.MediaSize!

ISO B4 media size: 250mm x 353mm (9.84" x 13.90")

ISO_B5

Added in API level 19
static val ISO_B5: PrintAttributes.MediaSize!

ISO B5 media size: 176mm x 250mm (6.93" x 9.84")

ISO_B6

Added in API level 19
static val ISO_B6: PrintAttributes.MediaSize!

ISO B6 media size: 125mm x 176mm (4.92" x 6.93")

ISO_B7

Added in API level 19
static val ISO_B7: PrintAttributes.MediaSize!

ISO B7 media size: 88mm x 125mm (3.46" x 4.92")

ISO_B8

Added in API level 19
static val ISO_B8: PrintAttributes.MediaSize!

ISO B8 media size: 62mm x 88mm (2.44" x 3.46")

ISO_B9

Added in API level 19
static val ISO_B9: PrintAttributes.MediaSize!

ISO B9 media size: 44mm x 62mm (1.73" x 2.44")

ISO_C0

Added in API level 19
static val ISO_C0: PrintAttributes.MediaSize!

ISO C0 media size: 917mm x 1297mm (36.10" x 51.06")

ISO_C1

Added in API level 19
static val ISO_C1: PrintAttributes.MediaSize!

ISO C1 media size: 648mm x 917mm (25.51" x 36.10")

ISO_C10

Added in API level 19
static val ISO_C10: PrintAttributes.MediaSize!

ISO C10 media size: 28mm x 40mm (1.10" x 1.57")

ISO_C2

Added in API level 19
static val ISO_C2: PrintAttributes.MediaSize!

ISO C2 media size: 458mm x 648mm (18.03" x 25.51")

ISO_C3

Added in API level 19
static val ISO_C3: PrintAttributes.MediaSize!

ISO C3 media size: 324mm x 458mm (12.76" x 18.03")

ISO_C4

Added in API level 19
static val ISO_C4: PrintAttributes.MediaSize!

ISO C4 media size: 229mm x 324mm (9.02" x 12.76")

ISO_C5

Added in API level 19
static val ISO_C5: PrintAttributes.MediaSize!

ISO C5 media size: 162mm x 229mm (6.38" x 9.02")

ISO_C6

Added in API level 19
static val ISO_C6: PrintAttributes.MediaSize!

ISO C6 media size: 114mm x 162mm (4.49" x 6.38")

ISO_C7

Added in API level 19
static val ISO_C7: PrintAttributes.MediaSize!

ISO C7 media size: 81mm x 114mm (3.19" x 4.49")

ISO_C8

Added in API level 19
static val ISO_C8: PrintAttributes.MediaSize!

ISO C8 media size: 57mm x 81mm (2.24" x 3.19")

ISO_C9

Added in API level 19
static val ISO_C9: PrintAttributes.MediaSize!

ISO C9 media size: 40mm x 57mm (1.57" x 2.24")

JIS_B0

Added in API level 19
static val JIS_B0: PrintAttributes.MediaSize!

Japanese JIS B0 media size: 1030mm x 1456mm (40.551" x 57.323")

JIS_B1

Added in API level 19
static val JIS_B1: PrintAttributes.MediaSize!

Japanese JIS B1 media size: 728mm x 1030mm (28.661" x 40.551")

JIS_B10

Added in API level 19
static val JIS_B10: PrintAttributes.MediaSize!

Japanese JIS B10 media size: 32mm x 45mm (1.259" x 1.772")

JIS_B2

Added in API level 19
static val JIS_B2: PrintAttributes.MediaSize!

Japanese JIS B2 media size: 515mm x 728mm (20.276" x 28.661")

JIS_B3

Added in API level 19
static val JIS_B3: PrintAttributes.MediaSize!

Japanese JIS B3 media size: 364mm x 515mm (14.331" x 20.276")

JIS_B4

Added in API level 19
static val JIS_B4: PrintAttributes.MediaSize!

Japanese JIS B4 media size: 257mm x 364mm (10.118" x 14.331")

JIS_B5

Added in API level 19
static val JIS_B5: PrintAttributes.MediaSize!

Japanese JIS B5 media size: 182mm x 257mm (7.165" x 10.118")

JIS_B6

Added in API level 19
static val JIS_B6: PrintAttributes.MediaSize!

Japanese JIS B6 media size: 128mm x 182mm (5.049" x 7.165")

JIS_B7

Added in API level 19
static val JIS_B7: PrintAttributes.MediaSize!

Japanese JIS B7 media size: 91mm x 128mm (3.583" x 5.049")

JIS_B8

Added in API level 19
static val JIS_B8: PrintAttributes.MediaSize!

Japanese JIS B8 media size: 64mm x 91mm (2.52" x 3.583")

JIS_B9

Added in API level 19
static val JIS_B9: PrintAttributes.MediaSize!

Japanese JIS B9 media size: 45mm x 64mm (1.772" x 2.52")

JIS_EXEC

Added in API level 19
static val JIS_EXEC: PrintAttributes.MediaSize!

Japanese JIS Exec media size: 216mm x 330mm (8.504" x 12.992")

JPN_CHOU2

Added in API level 19
static val JPN_CHOU2: PrintAttributes.MediaSize!

Japanese Chou2 media size: 111.1mm x 146mm (4.374" x 5.748")

JPN_CHOU3

Added in API level 19
static val JPN_CHOU3: PrintAttributes.MediaSize!

Japanese Chou3 media size: 120mm x 235mm (4.724" x 9.252")

JPN_CHOU4

Added in API level 19
static val JPN_CHOU4: PrintAttributes.MediaSize!

Japanese Chou4 media size: 90mm x 205mm (3.543" x 8.071")

JPN_HAGAKI

Added in API level 19
static val JPN_HAGAKI: PrintAttributes.MediaSize!

Japanese Hagaki media size: 100mm x 148mm (3.937" x 5.827")

JPN_KAHU

Added in API level 19
static val JPN_KAHU: PrintAttributes.MediaSize!

Japanese Kahu media size: 240mm x 322.1mm (9.449" x 12.681")

JPN_KAKU2

Added in API level 19
static val JPN_KAKU2: PrintAttributes.MediaSize!

Japanese Kaku2 media size: 240mm x 332mm (9.449" x 13.071")

JPN_OE_PHOTO_L

Added in API level 31
static val JPN_OE_PHOTO_L: PrintAttributes.MediaSize

Japanese Photo L media size: 89mm x 127mm (3.5 x 5")

JPN_OUFUKU

Added in API level 19
static val JPN_OUFUKU: PrintAttributes.MediaSize!

Japanese Oufuku media size: 148mm x 200mm (5.827" x 7.874")

JPN_YOU4

Added in API level 19
static val JPN_YOU4: PrintAttributes.MediaSize!

Japanese You4 media size: 105mm x 235mm (4.134" x 9.252")

NA_ARCH_A

Added in API level 31
static val NA_ARCH_A: PrintAttributes.MediaSize

North America Arch A media size: 9" x 12" (229mm x 305mm)

NA_ARCH_B

Added in API level 31
static val NA_ARCH_B: PrintAttributes.MediaSize

North America Arch B media size: 12" x 18" (305mm x 457mm)

NA_ARCH_C

Added in API level 31
static val NA_ARCH_C: PrintAttributes.MediaSize

North America Arch C media size: 18" x 24" (457mm x 610mm)

NA_ARCH_D

Added in API level 31
static val NA_ARCH_D: PrintAttributes.MediaSize

North America Arch D media size: 24" x 36" (610mm x 914mm)

NA_ARCH_E

Added in API level 31
static val NA_ARCH_E: PrintAttributes.MediaSize

North America Arch E media size: 36" x 48" (914mm x 1219mm)

NA_ARCH_E1

Added in API level 31
static val NA_ARCH_E1: PrintAttributes.MediaSize

North America Arch E1 media size: 30" x 42" (762mm x 1067mm)

NA_FOOLSCAP

Added in API level 19
static val NA_FOOLSCAP: PrintAttributes.MediaSize!

North America Foolscap media size: 8" x 13" (203mm x 330mm)

NA_GOVT_LETTER

Added in API level 19
static val NA_GOVT_LETTER: PrintAttributes.MediaSize!

North America Government-Letter media size: 8.0" x 10.5" (203mm x 267mm)

NA_INDEX_3X5

Added in API level 19
static val NA_INDEX_3X5: PrintAttributes.MediaSize!

North America Index Card 3x5 media size: 3" x 5" (76mm x 127mm)

NA_INDEX_4X6

Added in API level 19
static val NA_INDEX_4X6: PrintAttributes.MediaSize!

North America Index Card 4x6 media size: 4" x 6" (102mm x 152mm)

NA_INDEX_5X8

Added in API level 19
static val NA_INDEX_5X8: PrintAttributes.MediaSize!

North America Index Card 5x8 media size: 5" x 8" (127mm x 203mm)

Added in API level 19
static val NA_JUNIOR_LEGAL: PrintAttributes.MediaSize!

North America Junior Legal media size: 8.0" x 5.0" (203mm × 127mm)

NA_LEDGER

Added in API level 19
static val NA_LEDGER: PrintAttributes.MediaSize!

North America Ledger media size: 17" x 11" (432mm × 279mm)

Added in API level 19
static val NA_LEGAL: PrintAttributes.MediaSize!

North America Legal media size: 8.5" x 14" (216mm x 356mm)

NA_LETTER

Added in API level 19
static val NA_LETTER: PrintAttributes.MediaSize!

North America Letter media size: 8.5" x 11" (279mm x 216mm)

NA_MONARCH

Added in API level 19
static val NA_MONARCH: PrintAttributes.MediaSize!

North America Monarch media size: 7.25" x 10.5" (184mm x 267mm)

NA_QUARTO

Added in API level 19
static val NA_QUARTO: PrintAttributes.MediaSize!

North America Quarto media size: 8" x 10" (203mm x 254mm)

NA_SUPER_B

Added in API level 31
static val NA_SUPER_B: PrintAttributes.MediaSize

North America Super B media size: 13" x 19" (330mm x 483mm)

NA_TABLOID

Added in API level 19
static val NA_TABLOID: PrintAttributes.MediaSize!

North America Tabloid media size: 11" x 17" (279mm × 432mm)

OM_DAI_PA_KAI

Added in API level 19
static val OM_DAI_PA_KAI: PrintAttributes.MediaSize!

Chinese Dai Pa Kai media size: 275mm x 395mm (10.827" x 15.551")

OM_JUURO_KU_KAI

Added in API level 19
static val OM_JUURO_KU_KAI: PrintAttributes.MediaSize!

Chinese Jurro Ku Kai media size: 198mm x 275mm (7.796" x 10.827")

OM_PA_KAI

Added in API level 19
static val OM_PA_KAI: PrintAttributes.MediaSize!

Chinese Pa Kai media size: 267mm x 389mm (10.512" x 15.315")

PRC_1

Added in API level 19
static val PRC_1: PrintAttributes.MediaSize!

Chinese PRC 1 media size: 102mm x 165mm (4.015" x 6.496")

PRC_10

Added in API level 19
static val PRC_10: PrintAttributes.MediaSize!

Chinese PRC 10 media size: 324mm x 458mm (12.756" x 18.032")

PRC_16K

Added in API level 19
static val PRC_16K: PrintAttributes.MediaSize!

Chinese PRC 16k media size: 146mm x 215mm (5.749" x 8.465")

PRC_2

Added in API level 19
static val PRC_2: PrintAttributes.MediaSize!

Chinese PRC 2 media size: 102mm x 176mm (4.015" x 6.929")

PRC_3

Added in API level 19
static val PRC_3: PrintAttributes.MediaSize!

Chinese PRC 3 media size: 125mm x 176mm (4.921" x 6.929")

PRC_4

Added in API level 19
static val PRC_4: PrintAttributes.MediaSize!

Chinese PRC 4 media size: 110mm x 208mm (4.330" x 8.189")

PRC_5

Added in API level 19
static val PRC_5: PrintAttributes.MediaSize!

Chinese PRC 5 media size: 110mm x 220mm (4.330" x 8.661")

PRC_6

Added in API level 19
static val PRC_6: PrintAttributes.MediaSize!

Chinese PRC 6 media size: 120mm x 320mm (4.724" x 12.599")

PRC_7

Added in API level 19
static val PRC_7: PrintAttributes.MediaSize!

Chinese PRC 7 media size: 160mm x 230mm (6.299" x 9.055")

PRC_8

Added in API level 19
static val PRC_8: PrintAttributes.MediaSize!

Chinese PRC 8 media size: 120mm x 309mm (4.724" x 12.165")

PRC_9

Added in API level 19
static val PRC_9: PrintAttributes.MediaSize!

Chinese PRC 9 media size: 229mm x 324mm (9.016" x 12.756")

ROC_16K

Added in API level 19
static val ROC_16K: PrintAttributes.MediaSize!

Chinese ROC 16K media size: 195mm x 270mm (7.677" x 10.629")

ROC_8K

Added in API level 19
static val ROC_8K: PrintAttributes.MediaSize!

Chinese ROC 8K media size: 270mm x 390mm (10.629" x 15.3543")

UNKNOWN_LANDSCAPE

Added in API level 19
static val UNKNOWN_LANDSCAPE: PrintAttributes.MediaSize!

Unknown media size in landscape mode.

Note: This is for specifying orientation without media size. You should not use the dimensions reported by this instance.

UNKNOWN_PORTRAIT

Added in API level 19
static val UNKNOWN_PORTRAIT: PrintAttributes.MediaSize!

Unknown media size in portrait mode.

Note: This is for specifying orientation without media size. You should not use the dimensions reported by this instance.