Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeviceStatus.PowerSource Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether the device is currently running on battery power or is plugged in to an external power supply.

Namespace:  Microsoft.Phone.Info
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static PowerSource PowerSource { get; }

Property Value

Type: Microsoft.Phone.Info.PowerSource
Returns PowerSource.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show: