getBatteryList

Gets list of all aviable batteries in system

getBatteryList
(
)

Return Value

Type: auto

range of battery names

Examples

import std.array;
import battery.d;
getBatteryList().array; // ["BAT0"], laptops in general have only 1 battery
getBatteryList().front; // "BAT1"

Meta