Android.OS.PowerManager.IsScreenOn Property
Returns true if the device is in an interactive state.

Syntax

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

Value

Documentation for this section has not yet been entered.

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 PowerManager.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.Views.Display.State.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 7