Skip to main content
Version: Next

Taro.onBeaconServiceChange(callback)

Listens on the iBeacon service status change event.

Reference

Type

(callback: Callback) => void

Parameters

Callback

The callback function for the iBeacon service status change event.

(result: CallbackResult) => void
PropertyType
resultCallbackResult

CallbackResult

PropertyTypeDescription
availablebooleanIndicates whether the service is available
discoveringbooleanIndicates whether the device is in the discovery status

API Support

APIWeChat Mini-ProgramH5React Native
Taro.onBeaconServiceChange✔️