BatteryStatus BatteryStatus BatteryStatus BatteryStatus BatteryStatus Enum


Indicates the status of the battery.

public : enum class BatteryStatus
enum class winrt::Windows::System::Power::BatteryStatus : int32_t
public enum BatteryStatus
Public Enum BatteryStatus
var value = Windows.System.Power.BatteryStatus.charging;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Charging Charging Charging Charging Charging 3

The battery is charging.

Discharging Discharging Discharging Discharging Discharging 1

The battery is discharging.

Idle Idle Idle Idle Idle 2

The battery is idle.

NotPresent NotPresent NotPresent NotPresent NotPresent 0

The battery or battery controller is not present.


This enumeration is used as part of the BatteryReport class to provide information about a Battery object.

If the battery controller is removed after you create a Battery object, the Status will be NotPresent.

An Idle status occurs when the charge rate is zero. The battery isn’t charging, but it is maintaining its current level of charge.