Applet Operation

Function table: setSupportControlMiniProgram

Example

Swift

let param = IDOAppletControlModel(operate: 1)
Cmds.setAppleControl(param).send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOBatteryInfoModel
}else {
// Failure
}
}

Kotlin

val param = IDOAppletControlModel(operate: 1)
Cmds.setAppleControl().send {
if (it.error.code == 0) {
// Success
// it.res is IDOBatteryInfoModel
}else {
// Failure
}
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-07-25 09:44:17

results matching ""

    No results matching ""