LimeGeofenceManager Class Reference
| Inherits from | NSObject |
| Declared in | LimeGeofenceManager.h LimeGeofenceManager.m |
Overview
A manager class responsible for maintaining list of currently visible geofences and for providing callbacks about the geofence visibility change.
Tasks
-
geofencesproperty -
locationproperty -
– initWithLocationManager: -
– startListeningForGeofencesForAppKey:visibilityStatusChange: -
– startListeningForGeofences:geofenceVisibilityStatusChange: -
– restartListeningForGeofences -
– stopListeningForGeofences -
– didUpdateGeofenceRegion:state: -
– didUpdateLocations:
Properties
Instance Methods
didUpdateGeofenceRegion:state:
A callback that is sent by the LimeLocationManager in case region state changes.
- (void)didUpdateGeofenceRegion:(CLRegion *)region state:(CLRegionState)stateParameters
- region
Circular region that was updated.
- state
State of the updated region.
Discussion
A callback that is sent by the LimeLocationManager in case region state changes.
Declared In
LimeGeofenceManager.hdidUpdateLocations:
A callback that is sent by the LimeLocationManager in case location changes.
- (void)didUpdateLocations:(NSArray *)locationsParameters
- locations
Last locations as returned by the CLLocationManager instance.
Discussion
A callback that is sent by the LimeLocationManager in case location changes.
Declared In
LimeGeofenceManager.hinitWithLocationManager:
Init a new geofence manager instance passing the single location manager.
- (instancetype)initWithLocationManager:(LimeLocationManager *)locationManagerParameters
- locationManager
Location manager that is responsible for location related callbacks.
Return Value
A new instance of a geofence manager.
Discussion
Init a new geofence manager instance passing the single location manager.
Declared In
LimeGeofenceManager.hrestartListeningForGeofences
If geofence monotoring was stopped, this method restarts it without a configuration change.
- (void)restartListeningForGeofencesDiscussion
If geofence monotoring was stopped, this method restarts it without a configuration change.
Declared In
LimeGeofenceManager.hstartListeningForGeofences:geofenceVisibilityStatusChange:
Starts listening for geofences with given radius and coordinate and passes any changes of currently visible geofences via the callback block.
- (void)startListeningForGeofences:(NSArray *)geofences geofenceVisibilityStatusChange:(GeofenceVisibilityStatusChange)geofenceVisibilityStatusChangeParameters
- geofences
List of geofences to be monitored. It is important geofences have their Lime CMS identifier (“rid”) - geofences without non-null rid are skipped.
- geofenceVisibilityStatusChange
A callback that receives found, stale or lost geofences instances (LimeGeofence class).
Discussion
Starts listening for geofences with given radius and coordinate and passes any changes of currently visible geofences via the callback block.
Declared In
LimeGeofenceManager.hstartListeningForGeofencesForAppKey:visibilityStatusChange:
Starts updating the list of currently monitored geofences and delivers callbacks via the geofence visibility status change callback.
- (void)startListeningForGeofencesForAppKey:(NSString *)appKey visibilityStatusChange:(GeofenceVisibilityStatusChange)geofenceVisibilityStatusChangeParameters
- appKey
An app key used for geofence updates.
- geofenceVisibilityStatusChange
A callback that receives found, stale or lost geofences instances (LimeGeofence class).
Discussion
Starts updating the list of currently monitored geofences and delivers callbacks via the geofence visibility status change callback.
Declared In
LimeGeofenceManager.h