Disabling automatic Interaction tracking

Disable automatic Interaction tracking by calling the mxoAutomaticInteractionTrackingConfiguration Kotlin top-level function or the MedalliaMXO.setAutomaticInteractionTrackingConfiguration Java method with the appropriate configuration, as shown below:

import com.medallia.mxo.automatic.MXOAutomaticInteractionTrackingConfiguration.Companion.copy
import com.medallia.mxo.mxoAutomaticInteractionTrackingConfiguration

// Disabling the automatic Interaction tracking.
mxoAutomaticInteractionTrackingConfiguration = mxoAutomaticInteractionTrackingConfiguration.copy {
    	disableInteractionTracking = true 
}

// Updating the automatic Interaction tracking configuration.
mxoAutomaticInteractionTrackingConfiguration = mxoAutomaticInteractionTrackingConfiguration.copy { 
	disableInteractionTracking = false
}
import com.medallia.mxo.MedalliaMXO;
import com.medallia.mxo.automatic.MXOAutomaticInteractionTrackingConfiguration;

// Disabling the automatic Interaction tracking.
final MXOAutomaticInteractionTrackingConfiguration interactionTrackingConfiguration= new MXOAutomaticInteractionTrackingConfiguration.Builder()
        .disableInteractionTracking(true)
        .build();
MedalliaMXO.setAutomaticInteractionTrackingConfiguration(interactionTrackingConfiguration);

// Updating the automatic Interaction tracking configuration.
MXOAutomaticInteractionTrackingConfiguration currentConfiguration = MedalliaMXO.getAutomaticInteractionTrackingConfiguration();
MXOAutomaticInteractionTrackingConfiguration.Builder builder = currentConfiguration != null ?currentConfiguration.builder() : new MXOAutomaticInteractionTrackingConfiguration.Builder();
MXOAutomaticInteractionTrackingConfiguration updatedConfiguration = builder
	.disableInteractionTracking(false)
	.build();
MedalliaMXO.setAutomaticInteractionTrackingConfiguration(updatedConfiguration);
Important: By disabling automatic Interaction tracking, the SDK will no longer automatically send Interaction requests as Activities or Fragments are presented on screen. It becomes your responsibility to send them when needed by using the send Interaction methods outlined in the current documentation.