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

    manager

    the object that called this method

    localRef

    local reference of the triggered geofence

    buildingRef

    building 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

    manager

    the object that called this method

    localRef

    local reference of the triggered geofence

    buildingRef

    building 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

    manager

    the object that called this method

    beaconId

    the 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

    manager

    the object that called this method

    beaconId

    the identifier of beacon as known as assetTrackingId