Disabling automatic Interaction tracking
Disable automatic Interaction tracking, by calling the method disableInteractionTraking
and passing true
as a parameter, as shown below:
// Disabling the automatic Interaction tracking.
MedalliaMXO.automaticInteractionTrackingConfiguration = MXOAutomaticInteractionTrackingConfiguration { builder in
builder.disableInteractionTracking = true
}
// Updating the automatic Interaction tracking configuration.
let builder = MedalliaMXO.automaticInteractionTrackingConfiguration?.builder() ?? MXOAutomaticInteractionTrackingConfigurationBuilder()
builder.disableInteractionTracking = false
MedalliaMXO.automaticInteractionTrackingConfiguration = builder.build()
// Disabling the automatic Interaction tracking.
MedalliaMXO.automaticInteractionTrackingConfiguration = [MXOAutomaticInteractionTrackingConfiguration initWithBuilder:^(MXOAutomaticInteractionTrackingConfigurationBuilder * _Nonnull builder) {
builder.disableInteractionTracking = YES;
}];
// Updating the automatic Interaction tracking configuration.
MXOAutomaticInteractionTrackingConfigurationBuilder *builder = MedalliaMXO.automaticInteractionTrackingConfiguration.builder ? MedalliaMXO.automaticInteractionTrackingConfiguration.builder : [MXOAutomaticInteractionTrackingConfigurationBuilder new];
builder.disableInteractionTracking = NO;
MedalliaMXO.automaticInteractionTrackingConfiguration = [builder build];
An appropriate place to call the method might be under didFinishLaunchingWithOptions
in your AppDelegate
class.