基础API设备蓝牙dlt.onBluetoothAdapterStateChange(function listener)本页总览dlt.onBluetoothAdapterStateChange(function listener)简介监听蓝牙适配器状态变化事件参数function listener蓝牙适配器状态变化事件的监听函数参数Object res属性类型说明availableboolean蓝牙适配器是否可用discoveringboolean蓝牙适配器是否处于搜索状态示例代码dlt.onBluetoothAdapterStateChange(function (res) { console.log('adapterState changed, now is', res);});