SITGeofencesDelegate
Objective-C
@protocol SITGeofencesDelegate <NSObject>
Swift
protocol SITGeofencesDelegate : NSObjectProtocol
Delegate for SITLocationManager. Use this to listen for geofences related callbacks.
-
Called every time the user enter in one or more of the geofences defined in the dashboard.
Declaration
Objective-C
- (void)didEnteredGeofences:(NSArray<SITGeofence *> *)geofences;
Swift
func didEnteredGeofences(_ geofences: [SITGeofence]!)
Parameters
geofences
the geofences where the user has entered
-
Called every time the user exited one or more geofences. A geofence is only added to the list if in the previous location update the user was inside it and in the last location update he is out.
Declaration
Objective-C
- (void)didExitedGeofences:(NSArray<SITGeofence *> *)geofences;
Swift
func didExitedGeofences(_ geofences: [SITGeofence]!)
Parameters
geofences
the geofences where the user has entered