Example usage for Java android.view Display fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_DISPLAY The default Display id, which is the id of the built-in primary display assuming there is one. |
int | INVALID_DISPLAY Invalid display id. |
int | FLAG_PRESENTATION Display flag: Indicates that the display is a presentation display. |
int | STATE_OFF Display state: The display is off. |
int | STATE_DOZE Display state: The display is dozing in a low power state; it is still on but is optimized for showing system-provided content while the device is non-interactive. |
int | STATE_DOZE_SUSPEND Display state: The display is dozing in a suspended low power state; it is still on but the CPU is not updating it. |
Class> | getClass() Returns the runtime class of this Object . |
void | getCurrentSizeRange(Point outSmallestSize, Point outLargestSize) Return the range of display sizes an application can expect to encounter under normal operation, as long as there is no physical change in screen size. |
int | getDisplayId() Gets the display id. |
int | getFlags() Returns a combination of flags that describe the capabilities of the display. |
int | getHeight() |
void | getMetrics(DisplayMetrics outMetrics) Gets display metrics that describe the size and density of this display. |
Mode | getMode() Returns the active mode of the display. |
String | getName() Gets the name of the display. |
int | getOrientation() |
int | getPixelFormat() Gets the pixel format of the display. |
void | getRealMetrics(DisplayMetrics outMetrics) Gets display metrics based on the real size of this display. |
void | getRealSize(Point outSize) Gets the real size of the display without subtracting any window decor or applying any compatibility scale factors. |
void | getRectSize(Rect outSize) Gets the size of the display as a rectangle, in pixels. |
float | getRefreshRate() Gets the refresh rate of this display in frames per second. |
int | getRotation() Returns the rotation of the screen from its "natural" orientation. |
void | getSize(Point outSize) Gets the size of the display, in pixels. |
int | getState() Gets the state of the display, such as whether it is on or off. |
Mode[] | getSupportedModes() Gets the supported modes of this display. |
float[] | getSupportedRefreshRates() Get the supported refresh rates of this display in frames per second. |
int | getWidth() |
boolean | isValid() Returns true if this display is still valid, false if the display has been removed. |
String | toString() |