PowerManager.RemainingChargePercent Property

Definition

Gets the remaining charge percentage of the battery on the device.

public:
 static property int RemainingChargePercent { int get(); };
static int RemainingChargePercent();
public static int RemainingChargePercent { get; }
var int32 = PowerManager.remainingChargePercent;
Public Shared ReadOnly Property RemainingChargePercent As Integer

Property Value

Int32

int

The remaining charge percentage of the battery.

Remarks

The granularity varies from system to system but the finest granularity is 1 percent. This property corresponds to the GUID_BATTERY_PERCENTAGE_REMAINING power setting GUID.

Applies to

See also