BatteryStatus
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
new BatteryStatus(): BatteryStatus
Returns BatteryStatus
Accessors
charging
- get charging(): boolean
Returns boolean
charging Time
- get chargingTime(): number
Get the time remaining until the battery is fully charged.
Returns number
discharging Time
- get dischargingTime(): number
Get the time remaining until the battery is completely discharged.
Returns number
level
- get level(): number
Get the battery's charge level
Returns number
Methods
start
start(): Promise<BatteryStatus>
Returns Promise<BatteryStatus>
stop
stop(): BatteryStatus
Check if the battery is currently charging.