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手机蓝牙功能开启且可用
}
浙公网安备 33010602011771号