View.KeepScreenOn Property

Definition

Returns whether the screen should remain on, corresponding to the current value of #KEEP_SCREEN_ON. -or- Controls whether the screen should remain on, modifying the value of #KEEP_SCREEN_ON.

public virtual bool KeepScreenOn { [Android.Runtime.Register("getKeepScreenOn", "()Z", "GetGetKeepScreenOnHandler")] get; [Android.Runtime.Register("setKeepScreenOn", "(Z)V", "GetSetKeepScreenOn_ZHandler")] set; }
[<get: Android.Runtime.Register("getKeepScreenOn", "()Z", "GetGetKeepScreenOnHandler")>]
[<set: Android.Runtime.Register("setKeepScreenOn", "(Z)V", "GetSetKeepScreenOn_ZHandler")>]
member this.KeepScreenOn : bool with get, set

Property Value

Returns true if #KEEP_SCREEN_ON is set.

Attributes

Remarks

Property getter documentation:

Returns whether the screen should remain on, corresponding to the current value of #KEEP_SCREEN_ON.

Java documentation for android.view.View.getKeepScreenOn().

Property setter documentation:

Controls whether the screen should remain on, modifying the value of #KEEP_SCREEN_ON.

Java documentation for android.view.View.setKeepScreenOn(boolean).

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

See also