Android.Views.Display Members

The members of Android.Views.Display are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
DefaultDisplayint (0). The default Display id, which is the id of the built-in primary display assuming there is one.
const
FlagPresentationDisplayFlags (8). Display flag: Indicates that the display is a presentation display.
const
FlagPrivateDisplayFlags (4). Display flag: Indicates that the display is private.
const
FlagSecureDisplayFlags (2). Display flag: Indicates that the display has a secure video output and supports compositing secure surfaces.
const
FlagSupportsProtectedBuffersDisplayFlags (1). Display flag: Indicates that the display supports compositing content that is stored in protected graphics buffers.
const
StateDozingint (3). Documentation for this section has not yet been entered.

Public Properties

[read-only]
AppVsyncOffsetNanoslong. Gets the app VSYNC offset, in nanoseconds.
[read-only]
DisplayIdint. Gets the display id.
[read-only]
FlagsDisplayFlags. Returns a combination of flags that describe the capabilities of the display.
[read-only]
Heightint.
[read-only]
IsValidbool. Returns true if this display is still valid, false if the display has been removed.
[read-only]
Namestring. Gets the name of the display.
[read-only]
Orientationint.
[read-only]
PixelFormatAndroid.Graphics.Format. Gets the pixel format of the display.
[read-only]
PresentationDeadlineNanoslong. This is how far in advance a buffer must be queued for presentation at a given time.
[read-only]
RefreshRatefloat. Gets the refresh rate of this display in frames per second.
[read-only]
RotationSurfaceOrientation. Returns the rotation of the screen from its "natural" orientation.
[read-only]
StateDisplayState. Gets the state of the display, such as whether it is on or off.
[read-only]
Widthint.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetCurrentSizeRange(Android.Graphics.Point, Android.Graphics.Point)
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.
GetMetrics(Android.Util.DisplayMetrics)
Gets display metrics that describe the size and density of this display.
GetRealMetrics(Android.Util.DisplayMetrics)
Gets display metrics based on the real size of this display.
GetRealSize(Android.Graphics.Point)
Gets the real size of the display without subtracting any window decor or applying any compatibility scale factors.
GetRectSize(Android.Graphics.Rect)
Gets the size of the display as a rectangle, in pixels.
GetSize(Android.Graphics.Point)
Gets the size of the display, in pixels.
GetSupportedRefreshRates() : float[]
Get the supported refresh rates of this display in frames per second.