public static interface

Apptimize.OnTestEnrollmentChangedListener

com.apptimize.Apptimize.OnTestEnrollmentChangedListener

Class Overview

Interface definition for callbacks to be invoked when an Apptimize A/B experiment enrollment has changed. This happens at various times:

  • new information from server
  • device properties or custom attributes changed
  • the customer user id has been changed
  • and a few other cases
This callback methods will always be called on the main thread.

Summary

Public Methods
abstract void onEnrolledInTest(ApptimizeTestInfo testInfo)
Called when a user first becomes enrolled in a test.
abstract void onUnenrolledInTest(ApptimizeTestInfo testInfo, Apptimize.UnenrollmentReason reason)
Called when a user becomes unenrolled in a test.

Public Methods

public abstract void onEnrolledInTest (ApptimizeTestInfo testInfo)

Called when a user first becomes enrolled in a test.

Parameters
testInfo The test info at the time of enrollment. See ApptimizeTestInfo

public abstract void onUnenrolledInTest (ApptimizeTestInfo testInfo, Apptimize.UnenrollmentReason reason)

Called when a user becomes unenrolled in a test.

Parameters
testInfo The test info just before the user became unenrolled. See ApptimizeTestInfo
reason The reason for unenrollment. See Apptimize.UnenrollmentReason