@yoda/battery

provide the battery state management.

Methods

(inner) isBatterySupported() → {boolean}

Returns:
Type:
boolean

true if device has battery support enabled

(inner) getBatteryInfo(optionsopt) → {object}

Parameters:
Name Type Attributes Description
options object <optional>
Name Type Attributes Description
timeout number <optional>
Returns:
Type:
object

battery info