• Taro.onBluetoothAdapterStateChange(CALLBACK)
    • 示例代码

    Taro.onBluetoothAdapterStateChange(CALLBACK)

    使用方式同 wx.onBluetoothAdapterStateChange

    示例代码

    1. import Taro from '@tarojs/taro'
    2. Taro.onBluetoothAdapterStateChange(res => {
    3. console.log(`adapterState changed, now is`, res)
    4. })