MoEngageSDKStateHelper

@objc
public class MoEngageSDKStateHelper : NSObject
  • Returns the current state of the SDK, i.e. whether it is enabled or disabled.

    Declaration

    Swift

    @objc
    public static func isSDKEnabled(appID: String? = nil, completion: @escaping (Bool) -> Void)

    Parameters

    appID

    MoEngage Account Identifier

    completion

    Returns true if SDK is enabled else false

  • Checks if the SDK is initialised with given account identifier

    Declaration

    Swift

    @objc
    public static func isSDKInitialized(appID: String? = nil, completion: @escaping (Bool) -> Void)

    Parameters

    appID

    MoEngage Account Identifier

    completion

    Returns true if SDK is initialized else false

  • Checks if the SDK is initialised with default account

    Declaration

    Swift

    @objc
    public static func isSDKInitialized(_ completion: @escaping (Bool) -> Void)

    Parameters

    completion

    Returns true if SDK is initialized else false