BDPGeoTriggeringEventDelegate

Objective-C

@protocol BDPGeoTriggeringEventDelegate <NSObject>

Swift

protocol BDPGeoTriggeringEventDelegate : NSObjectProtocol

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.

    Note

    To access detail of the latest BDZoneInfo downloaded to the SDK, access BDLocationManager\zoneInfos

    Declaration

    Objective-C

    - (void)didUpdateZoneInfo;

    Swift

    optional func didUpdateZoneInfo()
  • Implement this method to provide your own implementation when device enters a Zone.

    Declaration

    Objective-C

    - (void)didEnterZone:(nonnull GeoTriggerEvent *)enterEvent;

    Swift

    optional func didEnterZone(_ enterEvent: GeoTriggerEvent)

    Parameters

    enterEvent

    Contains zone entry event information. See GeoTriggerEvent for more information.

  • Implement this method to provide your own implementation when device exits a Zone.

    Declaration

    Objective-C

    - (void)didExitZone:(nonnull GeoTriggerEvent *)exitEvent;

    Swift

    optional func didExitZone(_ exitEvent: GeoTriggerEvent)

    Parameters

    exitEvent

    Contains zone exit event information. See GeoTriggerEvent for more information.