public static interface

Apptimize.OnTestRunListener

com.apptimize.Apptimize.OnTestRunListener

Class Overview

Interface definition for a callback to be invoked when an Apptimize A/B test 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 test (even if it is enrolled in the baseline variant for that test).
  • The callback method may be called multiple times when the A/B test 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 onTestRun(ApptimizeTestInfo testInfo, Apptimize.IsFirstTestRun firstRun)
Called when an Apptimize A/B experiment is run.

Public Methods

public abstract void onTestRun (ApptimizeTestInfo testInfo, Apptimize.IsFirstTestRun firstRun)

Called when an Apptimize A/B experiment is run.

Parameters
testInfo The ApptimizeTestInfo test info of the Apptimize A/B experiment that was run.
firstRun Whether or not this is the first time this experiment was run on this device.