Pulse Delegate - Swift¶
The SDK provides the following delegate methods
- 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!)
- func onLocalGeofenceExited(_ gID: String!, dewll dwell: Float)
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.