ChannelPowerLevel Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The additional data associated with the PowerLevelChanged message.
Namespace: Microsoft.Phone.Notification
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Enumeration ChannelPowerLevel
public enum ChannelPowerLevel
<object property="enumerationValue" .../>
Members
Member name | Description | |
---|---|---|
NormalPowerLevel | The battery capacity is not low. All push notification types will be sent to the device. | |
LowPowerLevel | The battery capacity is low. Only raw notifications will be sent to the device. | |
CriticalLowPowerLevel | The battery capacity is critically low. No push notifications of any type will be sent to the device. |
Remarks
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_PUSH_NOTIFICATION |
Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone