# blueToothEnable ^7.8

打开蓝牙(只Android端支持)

# 请求参数

N/A

# 接口调用示例



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

# 接口返回示例


this.$bridge.addEventListener('receiveMessageFromApp', (res) => {
  console.log('blueToothEnable', JSON.stringify(res))
  this.$bridge.showToast({
    title: JSON.stringify(res),
    duration: 5,
  })
})

1
2
3
4
5
6
7
8
9

# FAQ

TIP

通过receiveMessageFromApp事件返回结果

更新时间: 7/27/2021, 11:23:45 AM