wx.onBluetoothDeviceFound 接口调用后,如何销毁监听?
发布于 6 年前 作者 nayang 1412 次浏览 来自 官方Issues

wx.onBluetoothDeviceFound 接口调用后,如何销毁监听?

1 回复

wx.offBluetoothDeviceFound(function callback)

基础库 2.9.0 开始支持,低版本需做兼容处理

取消监听寻找到新设备的事件

你没有看文档的吗?

回到顶部