SFMCSdk
@objc(SFMCSdk)
public final class SFMCSdk : NSObject
-
Declaration
Swift
@objc public static var cdp: CDP
-
Declaration
Swift
@objc public static var mp: PUSH
-
Declaration
Swift
@objc public static var identity: IDENTITY
-
Declaration
Swift
@objc public static var sdkVersion: String
-
Declaration
Swift
@objc public static func initializeSdk(_ configuration: Config)
-
Declaration
Swift
@objc public static func track(event: Event)
-
Declaration
Swift
@objc public static func state() -> String
-
Declaration
Swift
@objc public static func setLogger(logLevel: LogLevel, logOutputter: LogOutputter = LogOutputter())
-
Declaration
Swift
@objc public static func setAutoMergePolicy(onCompletion: @escaping AutoMergePolicyCallback)
-
Declaration
Swift
@objc public static func setManualMergePolicy(withHandler handler: @escaping ManualMergePolicyCallback)
-
Declaration
Swift
@objc public static func getDataMergePolicy() -> DataMergePolicy
-
Declaration
Swift
@objc public static func resetDataPolicy(appId: String) -> Bool
-
Declaration
Swift
@objc public static func getAutoDataPolicyCallBack() -> AutoMergePolicyCallback?
-
Declaration
Swift
@objc public static func getManualDataPolicyCallBack() -> ManualMergePolicyCallback?
-
Declaration
Swift
public static func setLogger(logLevel: LogLevel, logOutputter: LogOutputter = LogOutputter(), filters: [LoggerCategory] = [LoggerCategory]())
-
Declaration
Swift
@objc public static func clearLoggerFilters()
-
Provides a way to set/override the accessibility attribute for Keychain
Declaration
Swift
@objc public static func setKeychainAccessibleAttribute(accessibleAttribute: CFTypeRef?)
Parameters
accessibleAttribute
CFTypeRef which has any one of below values kSecAttrAccessibleWhenUnlocked kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly kSecAttrAccessibleWhenUnlockedThisDeviceOnly kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly kSecAttrAccessibleAlwaysThisDeviceOnly
-
Returns accessible attribute set by the SDK or overridden value by the consuming application
Declaration
Swift
@objc public static func keychainAccessibleAttribute() -> CFTypeRef?
-
Sets whether or not keychain access errors cause a fatal exception.
Declaration
Swift
@objc public static func setKeychainAccessErrorsAreFatal(errorsAreFatal: Bool)
-
Declaration
Swift
@objc public static func keychainAccessErrorsAreFatal() -> Bool
-
Provides a way to set/override the Protection level for File system
Declaration
Swift
@objc public static func setFileProtectionType(fileProtectionType: FileProtectionType?)
Parameters
fileProtectionType
FileProtectionType which has any one of the below values NSFileProtectionComplete NSFileProtectionCompleteUnlessOpen NSFileProtectionCompleteUntilFirstUserAuthentication NSFileProtectionNone
-
Returns File protection type set by the SDK or overridden value by the consuming application
Declaration
Swift
@objc public static func fileProtectionType() -> FileProtectionType?
-
Declaration
Swift
@objc public static func tearDownModule(name: ModuleName)