title: Taro.onBeaconUpdate(callback)

sidebar_label: onBeaconUpdate

Listens on the iBeacon device update event.

Reference

Type

  1. (callback: Callback) => void

Parameters

Callback

The callback function for the iBeacon device update event.

  1. (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 ✔️