Opt Out APIs
MXOOptInOptions
Enum of options available for granular control of what customer information is tracked.
public struct MXOOptInOptions : OptionSet, @unchecked Sendable {
public init(rawValue: UInt)
public static var interactionTracking: MXOOptInOptions { get }
public static var keychainTidStorage: MXOOptInOptions { get }
public static var cityCountryDetection: MXOOptInOptions { get }
}
Enum | Description |
---|---|
interactionTracking | Use this option to track customer Interactions. |
keychainTidStorage | Use this option to securely store the customer's TID in the keychain. |
cityCountryDetection | Use this option to track the customer's city and country using IPDetect , not the actual device location. |
MXOOptOutConfiguration
The configuration object for opting in and out of tracking.
open class MXOOptOutConfiguration : NSObject {
open var optOut: Bool { get }
open var optInOptions: MXOOptInOptions { get }
}
Property | Type | Description |
---|---|---|
optOut | Bool | Set to true to opt out of tracking. |
optInOptions | MXOOptInOptions | Set of options that have opt in enabled. |
Create an instance using the Builder as shown below:
let optOutConfiguration = MXOOptOutConfiguration { builder in
builder.optOut = false
builder.optInOptions = .interactionTracking
}