MoEngageSDKGeofence
public class MoEngageSDKGeofence: NSObject
Class responsible to Handle Geofence Integration
-
Singleton instance
Declaration
Swift
public static let sharedInstance = MoEngageSDKGeofence()
-
Start geofence monitoring for Default MoEngage Instance
Declaration
Swift
public func startGeofenceMonitoring()
-
Start geofence monitoring for Secondary MoEngage Instance
Declaration
Swift
public func startGeofenceMonitoring(forAppID appID: String? = nil)
Parameters
appID
MoEngage Account Identifer
-
Stop geofence monitoring
Declaration
Swift
public func stopGeofenceMonitoring()
-
Stop geofence monitoring for secondary instance
Declaration
Swift
public func stopGeofenceMonitoring(forAppID appID: String? = nil)
Parameters
appID
MoEngage Account Identifer
-
Method to set the delegate in order to receive the callback when user enters/exits the regions for Default MoEngage Instance
Declaration
Swift
public func setGeofenceDelegate(_ delegate: MoEngageGeofenceDelegate?)
Parameters
delegate
Class instance that conforms to
MoEngageGeofenceDelegate
protocol. -
Method to set the delegate in order to receive the callback when user enters/exits the regions for Secondary MoEngage Instance
Declaration
Swift
public func setGeofenceDelegate(_ delegate: MoEngageGeofenceDelegate?, appID: String? = nil)
Parameters
delegate
Class instance that conforms to
MoEngageGeofenceDelegate
protocol.appID
MoEngage Account Identifier
-
Method to reset
MoEngageGeofenceDelegate
delegate for Default MoEngage InstanceDeclaration
Swift
public func resetGeofenceDelegate()
-
Method to reset
MoEngageGeofenceDelegate
delegate for Secondary MoEngage InstanceDeclaration
Swift
public func resetGeofenceDelegate(appID: String? = nil)
Parameters
appID
MoEngage Account Identifier