Get battery information
Function table: getBatteryInfo
Example
Swift
Cmds.getBatteryInfo().send {rs in
if case .success(let obj) = rs {
// Success
// obj is IDOBatteryInfoModel
}else {
// Failure
}
}
Kotlin
Cmds.getBatteryInfo().send {
if (it.error.code == 0) {
// Success
// it.res is IDOBatteryInfoModel
}else {
// Failure
}
}