Aracılığıyla paylaş


Display.State Property

Definition

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

public virtual Android.Views.DisplayState State { [Android.Runtime.Register("getState", "()I", "GetGetStateHandler")] get; }
[<get: Android.Runtime.Register("getState", "()I", "GetGetStateHandler")>]
member this.State : Android.Views.DisplayState

Property Value

The state of the display: one of #STATE_OFF, #STATE_ON, #STATE_DOZE, #STATE_DOZE_SUSPEND, #STATE_ON_SUSPEND, or #STATE_UNKNOWN.

Attributes

Remarks

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

Java documentation for android.view.Display.getState().

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.

Applies to