import std.array; import battery.d; getBatteryList().array; // ["BAT0"], laptops in general have only 1 battery getBatteryList().front; // "BAT1"
string battery_name | name of battery (example: BAT0) |
getBatteryList()
Duration.zero
if battery full or discharging.
Duration.zero
if battery full or charging.