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