See Also: PowerManager+WakeLock
public class PowerManager.WakeLock : Object
A wake lock is a mechanism to indicate that your application needs to have the device stay on.
Any application using a WakeLock must request the android.permission.WAKE_LOCK permission in an <uses-permission> element of the application's manifest. Obtain a wake lock by calling PowerManager.NewWakeLock(WakeLockFlags,String).
Call PowerManager+WakeLock.Acquire to acquire the wake lock and force the device to stay on at the level that was requested when the wake lock was created.
Call PowerManager+WakeLock.Release when you are done and don't need the lock anymore. It is very important to do this as soon as possible to avoid running down the device's battery excessively.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.OS.PowerManager.WakeLock are listed below.
See Also: Object