Android.Views.ISurfaceHolder.SetKeepScreenOn Method
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

Enable or disable option to keep the screen turned on while this surface is displayed. The default is false, allowing it to turn off. This is safe to call from any thread.

[Android Documentation]

Requirements

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