SPSmartGeofenceManagerDelegate
Objective-C
@protocol SPSmartGeofenceManagerDelegate <NSObject>
Swift
protocol SPSmartGeofenceManagerDelegate : NSObjectProtocol
Delegate for SPSmartGeofenceManager. Use this to listen for location related callbacks.
-
Called when user enter the registered geofence
Declaration
Objective-C
- (void)spSmartGeofenceManager:(SPSmartGeofenceManager *)manager didEnterGeofence:(NSString *)localRef building:(NSString *)buildingRef;Swift
optional func spSmartGeofenceManager(_ manager: SPSmartGeofenceManager!, didEnterGeofence localRef: String!, building buildingRef: String!)Parameters
managerthe object that called this method
localReflocal reference of the triggered geofence
buildingRefbuilding reference of the triggered geofence
-
Called when user exit the registered geofence
Declaration
Objective-C
- (void)spSmartGeofenceManager:(SPSmartGeofenceManager *)manager didExitGeofence:(NSString *)localRef building:(NSString *)buildingRef;Swift
optional func spSmartGeofenceManager(_ manager: SPSmartGeofenceManager!, didExitGeofence localRef: String!, building buildingRef: String!)Parameters
managerthe object that called this method
localReflocal reference of the triggered geofence
buildingRefbuilding reference of the triggered geofence
-
Called when users enter beacon fence
Declaration
Objective-C
- (void)spSmartGeofenceManager:(SPSmartGeofenceManager *)manager didEnterBeaconfence:(NSString *)beaconId;Swift
optional func spSmartGeofenceManager(_ manager: SPSmartGeofenceManager!, didEnterBeaconfence beaconId: String!)Parameters
managerthe object that called this method
beaconIdthe identifier of beacon as known as aseetTrackingId
-
Called when users leave beacon fence
Declaration
Objective-C
- (void)spSmartGeofenceManager:(SPSmartGeofenceManager *)manager didExitBeaconfence:(NSString *)beaconId;Swift
optional func spSmartGeofenceManager(_ manager: SPSmartGeofenceManager!, didExitBeaconfence beaconId: String!)Parameters
managerthe object that called this method
beaconIdthe identifier of beacon as known as assetTrackingId
SPSmartGeofenceManagerDelegate Protocol Reference