getBluetoothStatus 获取手机系统蓝牙开关状态

getBluetoothStatus ^7.6.0

获取手机系统蓝牙开关状态

#请求参数

  • N/A

#接口调用示例

this.$bridge
    .getBluetoothStatus ()
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })

#返回参数

  • 成功时返回 | Prop | Type | Required | Default | Description | | :---- |:----|:----|:----|:----------| | status | number | Y | N/A | 1:手机蓝牙功能关闭 2:手机蓝牙功能没有权限 3 :手机不支持蓝牙功能 4: 手机蓝牙功能开启且可用 |

#返回示例

{
    status:1, //status: 1手机蓝牙功能关闭 2手机蓝牙功能没有权限 3手机不支持蓝牙功能 4手机蓝牙功能开启且可用
}
posted on 2024-12-16 09:43  AtlasLapetos  阅读(17)  评论(0)    收藏  举报