Taro.onBeaconServiceChange(callback)
Listens on the iBeacon service status change event.
Type
(callback: Callback) => void
Parameters
Callback
The callback function for the iBeacon service status change event.
(result: CallbackResult) => void
| Property | Type |
|---|---|
| result | CallbackResult |
CallbackResult
| Property | Type | Description |
|---|---|---|
| available | boolean | Indicates whether the service is available |
| discovering | boolean | Indicates whether the device is in the discovery status |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Taro.onBeaconServiceChange | ✔️ |