Opt Out APIs
MXOOptInOptions
Enum of options available for granular control of what customer information is tracked.
typedef NS_OPTIONS(NSUInteger, MXOOptInOptions) {
InteractionTracking = 1 << 0,
KeychainTidStorage = 1 << 1,
CityCountryDetection = 1 << 2,
};
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.
@interface MXOOptOutConfiguration : NSObject
@property (nonatomic, assign) BOOL optOut;
@property (nonatomic, assign) MXOOptInOptions optInOptions;
@end
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:
MXOOptOutConfiguration *optOutConfiguration = [MXOOptOutConfiguration initWithBuilder:^(MXOOptOutConfigurationBuilder * _Nonnull builder) {
builder.optOut = false;
builder.optInOptions = InteractionTracking;
}];