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
locationManagerCLLocationManagerinstanceregionCLRegioninstance that represents an area that can be monitored.accountMetaMoEngageAccountMetainstance 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
locationManagerCLLocationManagerinstanceregionCLRegioninstance that represents an area that can be monitored.accountMetaMoEngageAccountMetainstance that provides the appId.