PowerManager Class
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.
Provides information about whether the phone's battery is in power-saving mode.
public ref class PowerManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PowerManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class PowerManager
Public Class PowerManager
- Inheritance
- Attributes
Windows requirements
Device family |
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Phone.PhoneContract (introduced in v1.0)
|
Properties
PowerSavingMode |
Gets a value that indicates whether the phone's battery is in power-saving mode. |
PowerSavingModeEnabled |
Gets a value indicating whether power saving mode is currently enabled on the phone, regardless of whether power saving mode is currently active. |
Events
PowerSavingModeChanged |
Occurs when the power-saving mode of the phone's battery is changed. |