设置一键呼叫

功能表:supportSetOnetouchCalling

参数说明:

字段名 字段类型 字段说明
open bool 0:关
1:开
phoneType Int 0:无效
1:doro手机
2:非doro手机

示例

Swift

Cmds.setOnekeySOS(open: 0, phoneType: 0).send { rs in
    if case .success(let obj) = rs {
        // 成功
        // obj is IDOCmdSetResponseModel
    }else {
        // 失败
    }
}

Kotlin

Cmds.setOnekeySOS(open: 0, phoneType: 0).send {
    if (it.error.code == 0) {
        // 成功
        // it.res is IDOCmdSetResponseModel
    }else {
        // 失败
    }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-11-01 10:34:22

results matching ""

    No results matching ""