获取血氧开关

功能表 : getSupportGetSpo2SwitchInfo

示例

Swift

Cmds.getSpo2Switch().send { rs in
    if case .success(let obj) = rs {
        // 成功
        // obj is IDOSpo2SwitchModel
    }else {
        // 失败
    }
}

Kotlin

Cmds.getSpo2Switch().send {
    if (it.error.code == 0) {
        // 成功
        // it.res is IDOSpo2SwitchModel
    }else {
        // 失败
    }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-05-21 11:22:02

results matching ""

    No results matching ""