Context.PowerService Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Use with #getSystemService(String)
to retrieve a
android.os.PowerManager
for controlling power management,
including "wake locks," which let you keep the device on while
you're running long tasks.
[Android.Runtime.Register("POWER_SERVICE")]
public const string PowerService;
[<Android.Runtime.Register("POWER_SERVICE")>]
val mutable PowerService : string
Field Value
- Attributes
Remarks
Use with #getSystemService(String)
to retrieve a android.os.PowerManager
for controlling power management, including "wake locks," which let you keep the device on while you're running long tasks.
Java documentation for android.content.Context.POWER_SERVICE
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.