Query bt pairing switch, connection, a2dp connection, hfp connection status (only supports devices with bt Bluetooth)

Function table: getBleAndBtVersion

Example

Swift

Cmds.getBtNotice().send { rs in
 if case .success(let obj) = rs {
 // Success
 // obj is IDOBtNoticeModel
 }else {
 // Failure

 }
}

Kotlin

Cmds.getBtNotice().send {
 if (it.error.code == 0) {
 // Success
 // it.res is IDOBtNoticeModel
 }else {
 // Failure
 }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2025-04-30 09:32:44

results matching ""

    No results matching ""