# wx.onBeaconServiceChange(function callback)
Start from base library version 1.2.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6
to monitor Beacon Service state change events, only one listener can be registered
# parameter
# function callback
Beacon Callback functions for service state change events
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
available | boolean | Service is currently available |
discovering | boolean | Is the current search status |