- context
- the Context to use
- mode
- the power/wake mode to set
Set the low-level power management behavior for this MediaPlayer. This can be used when the MediaPlayer is not playing through a SurfaceHolder set with MediaPlayer.SetDisplay(Android.Views.ISurfaceHolder) and thus can use the high-level MediaPlayer.SetScreenOnWhilePlaying(bool) feature.
This function has the MediaPlayer access the low-level power manager service to control the device's power usage while playing is occurring. The parameter is a combination of Android.OS.PowerManager wake flags. Use of this method requires NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#WAKE_LOCK permission. By default, no attempt is made to keep the device awake during playback.