Android.OS.PowerManager.WakeUp Method
Forces the device to wake up from sleep.

Syntax

[Android.Runtime.Register("wakeUp", "(J)V", "GetWakeUp_JHandler")]
public virtual void WakeUp (long time)

See Also

PowerManager.UserActivity(long, System.Boolean)
PowerManager.GoToSleep(long)

Parameters

time
The time when the request to wake up was issued, in the SystemClock.UptimeMillis time base. This timestamp is used to correctly order the wake up request with other power management functions. It should be set to the timestamp of the input event that caused the request to wake up.

Remarks

Forces the device to wake up from sleep.

If the device is currently asleep, wakes it up, otherwise does nothing. This is what happens when the power key is pressed to turn on the screen.

Requires the Android.Manifest.Permission.DevicePower permission.

[Android Documentation]

Requirements

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