Taro.onBluetoothAdapterStateChange(CALLBACK)
使用方式同 wx.onBluetoothAdapterStateChange
。
示例代码
import Taro from '@tarojs/taro'
Taro.onBluetoothAdapterStateChange(res => {
console.log(`adapterState changed, now is`, res)
})
使用方式同 wx.onBluetoothAdapterStateChange
。
import Taro from '@tarojs/taro'
Taro.onBluetoothAdapterStateChange(res => {
console.log(`adapterState changed, now is`, res)
})