offBeaconDiscovery
offBeaconDiscovery là api để xóa listener lắng nghe mỗi khi tìm được beacon
Tham số
| Thuộc tính | Kiểu dữ liệu | Bắt buộc | Mô tả |
|---|---|---|---|
| listener | Function | ✓ | Listener để lắng nghe mỗi khi tìm được beacon |
Ví dụ
import apis from '@v-miniapp/apis'
const onBeaconDiscoveryListener = (data: BeaconInfo) => {}
apis.onBeaconDiscovery(onBeaconDiscoveryListener)
apis.offBeaconDiscovery(onBeaconDiscoveryListener)