power
system
Battery
1 2 3
# coding=utf-8 # This is a sample Python script. from power import Battery
open
打开并创建Battery实例
close
关闭Battery实例
getConnectState
获取电池接通状态
getVoltage
获取电池电压
getLevel
获取电池剩余电量
getTemperature
获取电池温度