Battery#
capacity()#
The capacity(units) method reports the remaining capacity of the battery.
Parameters  | 
Description  | 
|---|---|
  | 
The only valid unit is   | 
Returns: The remaining capacity of the battery as percentage.
voltage()#
The voltage(units) method reports the voltage of the battery.
Parameters  | 
Description  | 
|---|---|
  | 
A valid   | 
Returns: The voltage in the supplied units.