获取所有的健康监测开关
功能表:getHealthSwitchStateSupportV3
示例
Swift
Cmds.getAllHealthSwitchState().send { rs in
if case .success(let obj) = rs {
// 成功
// obj is IDOAllHealthSwitchStateModel
}else {
// 失败
}
}
Kotlin
Cmds.getAllHealthSwitchState().send {
if (it.error.code == 0) {
// 成功
// it.res is IDOAllHealthSwitchStateModel
}else {
// 失败
}
}
ArkTs
Cmds.getAllHealthSwitchState((res)=>{
if(res.success){
//成功
// res.value is IDOAllHealthSwitchStateModel
} else {
//失败
}
})