Display Display Class

Definition

Provides information about the size and density of a logical display.

[Android.Runtime.Register("android/view/Display", ApiSince=1, DoNotGenerateAcw=true)]
public class Display : Java.Lang.Object
type Display = class
    inherit Object
Inheritance
DisplayDisplay
Attributes

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Display(IntPtr, JniHandleOwnership) Display(IntPtr, JniHandleOwnership)

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

Fields

DefaultDisplay DefaultDisplay

The default Display id, which is the id of the built-in primary display assuming there is one.

FlagPresentation FlagPresentation

Display flag: Indicates that the display is a presentation display.

FlagPrivate FlagPrivate

Display flag: Indicates that the display is private.

FlagRound FlagRound
FlagSecure FlagSecure

Display flag: Indicates that the display has a secure video output and supports compositing secure surfaces.

FlagSupportsProtectedBuffers FlagSupportsProtectedBuffers

Display flag: Indicates that the display supports compositing content that is stored in protected graphics buffers.

InvalidDisplay InvalidDisplay

Properties

AppVsyncOffsetNanos AppVsyncOffsetNanos

Gets the app VSYNC offset, in nanoseconds.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
DisplayId DisplayId

Gets the display id.

Flags Flags

Returns a combination of flags that describe the capabilities of the display.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Height Height
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsHdr IsHdr
IsValid IsValid

Returns true if this display is still valid, false if the display has been removed.

IsWideColorGamut IsWideColorGamut
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Name Name

Gets the name of the display.

Orientation Orientation
PeerReference PeerReference Inherited from Object
PixelFormat PixelFormat

Gets the pixel format of the display.

PresentationDeadlineNanos PresentationDeadlineNanos

This is how far in advance a buffer must be queued for presentation at a given time.

RefreshRate RefreshRate

Gets the refresh rate of this display in frames per second.

Rotation Rotation

Returns the rotation of the screen from its "natural" orientation.

State State

Gets the state of the display, such as whether it is on or off.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Width Width

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetCurrentSizeRange(Point, Point) GetCurrentSizeRange(Point, 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.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetHdrCapabilities() GetHdrCapabilities()
GetMetrics(DisplayMetrics) GetMetrics(DisplayMetrics)

Gets display metrics that describe the size and density of this display.

GetMode() GetMode()
GetRealMetrics(DisplayMetrics) GetRealMetrics(DisplayMetrics)

Gets display metrics based on the real size of this display.

GetRealSize(Point) GetRealSize(Point)

Gets the real size of the display without subtracting any window decor or applying any compatibility scale factors.

GetRectSize(Rect) GetRectSize(Rect)

Gets the size of the display as a rectangle, in pixels.

GetSize(Point) GetSize(Point)

Gets the size of the display, in pixels.

GetSupportedModes() GetSupportedModes()
GetSupportedRefreshRates() GetSupportedRefreshRates()

Get the supported refresh rates of this display in frames per second.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to