BDPGeoTriggeringEventDelegate
@protocol BDPGeoTriggeringEventDelegate <NSObject>
Defines the call-backs which Point SDK makes to inform the Application of Geotriggering events.
Assign your own implementation of this protocol to the BDLocationManager.geoTriggeringEventDelegate
property of the
shared BDLocationManager
instance, to handle Geotriggering related callbacks.
-
Called whenever new
BDZoneInfo
“zone info” is received from Canvas.This occurs a short while after Start Geotriggering is called, and repeats when the rule download time interval is reached or significant distance has been travelled.
This is a value that you set when creating the Application in the Canvas web-interface, and determines how often the Zone data will be refreshed on the device.
Declaration
Objective-C
- (void)onZoneInfoUpdate:(nonnull NSSet<BDZoneInfo *> *)zoneInfos;
Parameters
zoneInfos
A collection of
BDZoneInfo
objects, corresponding to the Zones you created for this application, in the Canvas web-interface. -
Implement this method to provide your own implementation when device enters a Zone.
Declaration
Objective-C
- (void)didEnterZone:(nonnull BDZoneEntryEvent *)enterEvent;
Parameters
enterEvent
Contains zone entry event information, please refer to
BDZoneEntryEvent
for more information. -
Implement this method to provide your own implementation when device exits a Zone.
Declaration
Objective-C
- (void)didExitZone:(nonnull BDZoneExitEvent *)exitEvent;
Parameters
exitEvent
Contains zone exit event information, please refer to
BDZoneExitEvent
for more information.