Java android.view Display fields, constructors, methods, implement or subclass

Example usage for Java android.view Display fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view Display.

The text is from its open source code.

Implementation

android.view.Display has the following implementations.
Click this link to see all its implementation.

Field

intDEFAULT_DISPLAY
The default Display id, which is the id of the built-in primary display assuming there is one.
intINVALID_DISPLAY
Invalid display id.
intFLAG_PRESENTATION
Display flag: Indicates that the display is a presentation display.
intSTATE_OFF
Display state: The display is off.
intSTATE_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.
intSTATE_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.

Method

ClassgetClass()
Returns the runtime class of this Object .
voidgetCurrentSizeRange(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.
intgetDisplayId()
Gets the display id.
intgetFlags()
Returns a combination of flags that describe the capabilities of the display.
intgetHeight()
voidgetMetrics(DisplayMetrics outMetrics)
Gets display metrics that describe the size and density of this display.
ModegetMode()
Returns the active mode of the display.
StringgetName()
Gets the name of the display.
intgetOrientation()
intgetPixelFormat()
Gets the pixel format of the display.
voidgetRealMetrics(DisplayMetrics outMetrics)
Gets display metrics based on the real size of this display.
voidgetRealSize(Point outSize)
Gets the real size of the display without subtracting any window decor or applying any compatibility scale factors.
voidgetRectSize(Rect outSize)
Gets the size of the display as a rectangle, in pixels.
floatgetRefreshRate()
Gets the refresh rate of this display in frames per second.
intgetRotation()
Returns the rotation of the screen from its "natural" orientation.
voidgetSize(Point outSize)
Gets the size of the display, in pixels.
intgetState()
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.
intgetWidth()
booleanisValid()
Returns true if this display is still valid, false if the display has been removed.
StringtoString()