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,
};
EnumDescription
InteractionTrackingUse this option to track customer Interactions.
KeychainTidStorageUse this option to securely store the customer's TID in the keychain.
CityCountryDetectionUse this option to track the customer's city and country using IPDetect, not the actual device location.
Note: For more information, see how to use MXO opt-in options when opting out or into tracking.

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
PropertyTypeDescription
optOutBOOLSet to true to opt out of tracking.
optInOptionsMXOOptInOptionsSet 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;
}];
Note: For more information, see how to opt out or into tracking.