# getBluetoothStatus ^7.6.0

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

# 请求参数

  • N/A

# 接口调用示例


this.$bridge
    .getBluetoothStatus ()
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })
1
2
3
4
5
6
7
8
9

# 返回参数

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

# 返回示例


{
    status:1, //status: 1手机蓝牙功能关闭 2手机蓝牙功能没有权限 3手机不支持蓝牙功能 4手机蓝牙功能开启且可用
}

1
2
3
4
5
Last Updated: 8/6/2021, 4:29:43 PM