public static interface

Apptimize.OnExperimentRunListener

com.apptimize.Apptimize.OnExperimentRunListener

This interface is deprecated.
Use Apptimize.OnTestRunListener instead.

Class Overview

Interface definition for a callback to be invoked when an Apptimize A/B experiment is run. There are a few notes to keep in mind when using this listener:

  • The callback method is only called if the device is enrolled in the A/B experiment (even if it is enrolled in the baseline variant for that experiment).
  • The callback method may be called multiple times when the A/B experiment is run.
  • The callback method will always be called on the main thread.
  • If the callback method throws a RuntimeException, it will be caught and logged.

Summary

Public Methods
abstract void onExperimentRun(String experimentName, String variantName, boolean firstRun)
This method is deprecated. Use Apptimize.OnTestRunListener instead.

Public Methods

public abstract void onExperimentRun (String experimentName, String variantName, boolean firstRun)

This method is deprecated.
Use Apptimize.OnTestRunListener instead.

Called when an Apptimize A/B experiment is run.

Parameters
experimentName The String name of the Apptimize A/B experiment that was run.
variantName The String name of the variant this device is enrolled into.
firstRun Whether or not this is the first time this experiment was run on this device.