MoEngageSDKGeofence
@objc
public class MoEngageSDKGeofence : NSObject, @unchecked Sendable
Class responsible to Handle Geofence Integration
@unchecked Sendable: this public entry point holds no mutable state — it is a stateless
facade whose methods dispatch onto the MoEngageSDKInstance actor via MoEngageAction.
-
Singleton instance
Declaration
Swift
@objc public static var sharedInstance: MoEngageSDKGeofence { get }
-
Start geofence monitoring for Default MoEngage Instance
Declaration
Swift
@objc public func startGeofenceMonitoring() -
Start geofence monitoring for Secondary MoEngage Instance
Declaration
Swift
public func startGeofenceMonitoring( forAppID appID: String? = nil, isolation `actor`: isolated (any Actor)? = #isolation )Parameters
appIDMoEngage Account Identifer
-
Start geofence monitoring for Secondary MoEngage Instance. Objective-C compatible overload.
Declaration
Swift
@_disfavoredOverload @objc public func startGeofenceMonitoring(forAppID appID: String? = nil) -
Stop geofence monitoring
Declaration
Swift
@objc public func stopGeofenceMonitoring() -
Stop geofence monitoring for secondary instance
Declaration
Swift
public func stopGeofenceMonitoring( forAppID appID: String? = nil, isolation `actor`: isolated (any Actor)? = #isolation )Parameters
appIDMoEngage Account Identifer
-
Stop geofence monitoring for secondary instance. Objective-C compatible overload.
Declaration
Swift
@_disfavoredOverload @objc public func stopGeofenceMonitoring(forAppID appID: String? = nil)
-
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
public func setGeofenceDelegate( _ delegate: MoEngageGeofenceDelegate?, appID: String? = nil, isolation `actor`: isolated (any Actor)? = #isolation )Parameters
delegateClass instance that conforms to
MoEngageGeofenceDelegateprotocol.appIDMoEngage Account Identifier
-
Method to set the delegate for Secondary MoEngage Instance. Objective-C compatible overload.
Declaration
Swift
@_disfavoredOverload @objc public func setGeofenceDelegate(_ delegate: MoEngageGeofenceDelegate?, appID: String? = nil) -
Method to reset
MoEngageGeofenceDelegatedelegate for Default MoEngage InstanceDeclaration
Swift
@objc public func resetGeofenceDelegate() -
Method to reset
MoEngageGeofenceDelegatedelegate for Secondary MoEngage InstanceDeclaration
Swift
public func resetGeofenceDelegate( appID: String? = nil, isolation `actor`: isolated (any Actor)? = #isolation )Parameters
appIDMoEngage Account Identifier
-
Method to reset
MoEngageGeofenceDelegatedelegate for Secondary MoEngage Instance. Objective-C compatible overload.Declaration
Swift
@_disfavoredOverload @objc public func resetGeofenceDelegate(appID: String? = nil)