Pulse Delegate - Objective-C¶
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
- (void)onLocalGeofenceExited:(NSString*)gID dewll:(float)dwell
The instructions for didReceiveDeepLinkNotification can be found in the Deep linking 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.