title: Taro.onBeaconServiceChange(callback)

sidebar_label: onBeaconServiceChange

Listens on the iBeacon service status change event.

Reference

Type

  1. (callback: Callback) => void

Parameters

Callback

The callback function for the iBeacon service status change event.

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