RemainingChargePercent | remainingChargePercent property

Battery.RemainingChargePercent property

Gets a value that indicates the percentage of the charge remaining on the phone's battery.

Syntax


public int RemainingChargePercent { get; }

Property value

Type: System.Int32 [.NET] | int32 [C++]

A value from 0 to 100 that indicates the percentage of the charge remaining on the phone's battery.

Requirements (Windows 10 device family)

Device family

Mobile, introduced version 10.0.10240.0

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::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.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.WinMD

See also

Battery

 

 

Show:
© 2016 Microsoft