MoEngageSDKRealTimeTrigger
@objc
public class MoEngageSDKRealTimeTrigger : NSObject, @unchecked Sendable
Class to configure to RealTimeTrigger
-
Singleton instance
Declaration
Swift
@objc public static let sharedInstance: MoEngageSDKRealTimeTrigger -
Method to fetch RealTimeTrigger campaigns from server.
Declaration
Swift
public func syncRealTimeTriggers( forAppID appID: String? = nil, isolation `actor`: isolated (any Actor)? = #isolation, andCompletionHandler completionHandler: ( @MainActor(unsafe) (_ success: Bool) -> Void )? = nil )Parameters
appIDMoEngage Account identifier
completionHandlerReturns true if sync is successful else false
-
Method to fetch RealTimeTrigger campaigns from server. Objective-C compatible overload.
Declaration
Swift
@_disfavoredOverload @objc public func syncRealTimeTriggers( forAppID appID: String? = nil, andCompletionHandler completionHandler: ( @MainActor(unsafe) (_ success: Bool) -> Void )? = nil )Parameters
appIDMoEngage Account identifier
completionHandlerReturns true if sync is successful else false