Pulse Delegate¶
The SDK provides the following delegate methods
- (void)didReceiveDeepLinkNotification:(NSString*)notification
- (void)didReceivePreciseLocation:(CLLocation*)location error:(NSString*)error
- (void)onLocalGeofenceCreated:(NSString*)gID success:(BOOL)success
- (void)onLocalGeofenceDeleted:(NSString*)gID success:(BOOL)success
- (void)onLocalGeofenceEntered:(NSString*)gID type:(enum LocalGeofence)type
- (void)onLocalGeofenceExited:(NSString*)gID type:(enum LocalGeofence)type dwell:(float)dwell
- (void)didReceiveVenue:(nullable NSDictionary*)Venue error:(nullable NSError*)error userLocation:(nullable CLLocation*)location
- func didReceiveDeepLinkNotification(_ notification: String?)
- func didReceivePreciseLocation(_ location: CLLocation?, error: String?)
- func onLocalGeofenceCreated(_ gID: String?, success: Bool)
- func onLocalGeofenceDeleted(_ gID: String?, success: Bool)
- func onLocalGeofenceEntered(_ gID: String, type: LocalGeofence)
- func onLocalGeofenceExited(_ gID: String, type: LocalGeofence, dwell: Float)
- func didReceiveVenue(_ Venue: [AnyHashable : Any]?, error: Error?, userLocation:CLLocation?)
The instructions for didReceiveDeepLinkNotification can be found in the Deep linking section
The instructions for didReceiveVenue can be found in the At Venue section
didReceivePreciseLocation¶
Provides a callback for getPreciseLocation. If getPreciseLocation is successful, then it will return a valid CLLocation object. Otherwise, an error message will be provided.
onLocalGeofenceCreated¶
If a local geofence is created by calling saveLocalGeofenceWithCoord, it returns the local geofence ID and a boolean indicating whether the local geofence has been created successfully.
onLocalGeofenceDeleted¶
Shows whether the local geofence is deleted by calling deleteLocalGeofenceWithIdentifier with a certain ID.
onLocalGeofenceEntered¶
Provides a callback when a local geofence is triggered by a user entering it.
onLocalGeofenceExited¶
Provides a callback when a local geofence is triggered by a user exiting it, and indicates how long a device dwelled in the geofence.