MediaSize

Class of android.print, in PrintAttributes · PrintAttributes.java · Android's reference

public static final class MediaSize

A size of paper, in mils (thousandths of an inch).

Fields

public static final MediaSize UNKNOWN_PORTRAIT source
public static final MediaSize UNKNOWN_LANDSCAPE source

Constructors

public MediaSize(String id, String label, int widthMils, int heightMils) source

Methods

public String getId() source
public String getLabel(android.content.pm.PackageManager packageManager) source
public int getWidthMils() source
public int getHeightMils() source
public boolean isPortrait() source
public MediaSize asPortrait() source
public MediaSize asLandscape() source
public boolean equals(Object o) source
public int hashCode() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.