Enable or disable option to keep the screen turned on while this
surface is displayed.
Syntax
[Android.Runtime.Register("setKeepScreenOn", "(Z)V", "GetSetKeepScreenOn_ZHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public
void SetKeepScreenOn (
bool screenOn)
Parameters
- screenOn
- Set to true to force the screen to stay on, false
to allow it to turn off.
Remarks
Requirements
Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1