MoEngageGeofenceDelegate
@objc
public protocol MoEngageGeofenceDelegate
An interface for monitoring the geofence regions.
-
Callback received when user enters the location
Declaration
Swift
func geofenceEnterTriggered(withLocationManager locationManager: CLLocationManager?, andRegion region: CLRegion?, forAccountMeta accountMeta: MoEngageAccountMeta)
Parameters
locationManager
CLLocationManager
instanceregion
CLRegion
instance that represents an area that can be monitored.accountMeta
MoEngageAccountMeta
instance that provides the appId. -
Callback received when user exists the location
Declaration
Swift
func geofenceExitTriggered(withLocationManager locationManager: CLLocationManager?, andRegion region: CLRegion?, forAccountMeta accountMeta: MoEngageAccountMeta)
Parameters
locationManager
CLLocationManager
instanceregion
CLRegion
instance that represents an area that can be monitored.accountMeta
MoEngageAccountMeta
instance that provides the appId.