Taro.onBeaconUpdate(callback)
Listens on the iBeacon device update event.
Type
(callback: Callback) => void
Parameters
Callback
The callback function for the iBeacon device update event.
(result: CallbackResult) => void
| Property | Type |
|---|---|
| result | CallbackResult |
CallbackResult
| Property | Type | Description |
|---|---|---|
| beacons | IBeaconInfo[] | The list of all iBeacon devices discovered |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Taro.onBeaconUpdate | ✔️ |