MoEngage
@objc
public class MoEngage : NSObject
This class handles MoEngage Initialization
-
Shared instance of MoEngage class
Declaration
Swift
@objc public static let sharedInstance: MoEngage
-
Initialize Default instance in Debug environment
Declaration
Swift
@objc public func initializeDefaultTestInstance(_ sdkConfig: MoEngageSDKConfig)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
-
Initialize Default instance in Debug environment with SDK state
Declaration
Swift
@objc public func initializeDefaultTestInstance(_ sdkConfig: MoEngageSDKConfig, sdkState: MoEngageSDKState)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
sdkState
MoEngageSDKState
enum that indicates if SDK must be enabled/disabled. -
Initialize Default Instance in Live environment
Declaration
Swift
@objc public func initializeDefaultLiveInstance(_ sdkConfig: MoEngageSDKConfig)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
-
Initialize Default Instance in Live environment with SDK state
Declaration
Swift
@objc public func initializeDefaultLiveInstance(_ sdkConfig: MoEngageSDKConfig, sdkState: MoEngageSDKState)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
sdkState
MoEngageSDKState
enum that indicates if SDK must be enabled/disabled.
-
Initialize Secondary instance in debug environment
Declaration
Swift
@objc public func initializeTestInstance(_ sdkConfig: MoEngageSDKConfig)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
-
Initialize Secondary instance in debug environment with SDK state
Declaration
Swift
@objc public func initializeTestInstance(_ sdkConfig: MoEngageSDKConfig, sdkState: MoEngageSDKState)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
sdkState
MoEngageSDKState
enum that indicates if SDK must be enabled/disabled. -
Initialize Secondary Instance in Live environment
Declaration
Swift
@objc public func initializeLiveInstance(_ sdkConfig: MoEngageSDKConfig)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
-
Initialize Secondary instance in Live environment with SDK state
Declaration
Swift
@objc public func initializeLiveInstance(_ sdkConfig: MoEngageSDKConfig, sdkState: MoEngageSDKState)
Parameters
sdkConfig
Instance of
MoEngageSDKConfig
sdkState
MoEngageSDKState
enum that indicates if SDK must be enabled/disabled.
-
API to enable SDK usage for the account configured as default.
Declaration
Swift
@objc public func enableSDK()
-
API to enable SDK usage for the account for Secondary instance
Declaration
Swift
@objc public func enableSDK(appId: String? = nil)
Parameters
appId
MoEngage Account Identifier
-
API to disable all features of the SDK for the account configured as default.
Declaration
Swift
@objc public func disableSDK()
-
API to disable all features of the SDK for Secondary instance
Declaration
Swift
@objc public func disableSDK(appId: String? = nil)
Parameters
appId
MoEngage Account Identifier