PowerManager.IsScreenOn Property

Definition

Caution

deprecated

Returns true if the device is in an interactive state.

[System.Obsolete("deprecated")]
public virtual bool IsScreenOn { [Android.Runtime.Register("isScreenOn", "()Z", "GetIsScreenOnHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("isScreenOn", "()Z", "GetIsScreenOnHandler")>]
member this.IsScreenOn : bool

Property Value

True if the device is in an interactive state.

Attributes

Remarks

Returns true if the device is in an interactive state.

For historical reasons, the name of this method refers to the power state of the screen but it actually describes the overall interactive state of the device. This method has been replaced by #isInteractive.

The value returned by this method only indicates whether the device is in an interactive state which may have nothing to do with the screen being on or off. To determine the actual state of the screen, use android.view.Display#getState.

This member is deprecated. Use #isInteractive instead.

Java documentation for android.os.PowerManager.isScreenOn().

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