电池#
容量()#
The capacity(units)
method reports the remaining capacity of the battery.
参数 |
描述 |
---|---|
单位 |
The only valid unit is |
**返回:**电池剩余容量的百分比。
温度()#
The temperature(units)
method reports the temperature of the battery.
参数 |
描述 |
---|---|
单位 |
A valid temperatureUnit or |
**返回:**以提供的单位表示的温度。
电压()#
The voltage(units)
method reports the voltage of the battery.
参数 |
描述 |
---|---|
单位 |
A valid voltageUnits type. The default is |
返回: 以提供的单位表示的电压。
当前的()#
The current(units)
method returns the battery current.
参数 |
描述 |
---|---|
单位 |
The only valid unit is |
返回: 所提供单位的电流。