Windows Dev Center

PowerManager class

Provides information about whether the phone's battery is in power-saving mode.

Syntax


var powerManager = Windows.Phone.System.Power.PowerManager;

Members

The PowerManager class has these types of members:

Events

The PowerManager class has these events.

EventDescription
PowerSavingModeChanged Occurs when the power-saving mode of the phone's battery is changed.

 

Properties

The PowerManager class has these properties.

PropertyAccess typeDescription

PowerSavingMode

Read-onlyGets a value that indicates whether the phone's battery is in power-saving mode.

PowerSavingModeEnabled

Read-onlyGets a value indicating whether power saving mode is currently enabled on the phone, regardless of whether power saving mode is currently active.

 

Requirements (Windows 10 device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.System.Power
Windows::Phone::System::Power [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.System.Power
Windows::Phone::System::Power [C++]

Metadata

Windows.WinMD

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

 

 

Show:
© 2015 Microsoft