class VariantInfo
Methods
String getAnonymousUserId ()
Get the anonymous user id from the VariantInfo object.
Returns:
The anonymous user id that was assigned at the time the VariantInfo was created.
Int getCurrentPhase ()
Returns:
The current phase of this test. This is 1 if the test has not been modified since creation, and increments by 1 each time the test is modified (such as when the test's allocations have been changed). The phase ID does not reset * when a test is restarted.
Int getCycle ()
Returns:
The cycle ID of this test. This is 1 if it's the initial test run, and increments by 1 each time the test is restarted or for if a non-proportional allocation change is made.
String getExperimentName ()
Get the experiment name from the VariantInfo object.
Returns:
The experiment name as set on dashboard.
ApptimizeExperimentType getExperimentType ()
Get the experiment type from the VariantInfo object.
Returns:
The experiment type as set on dashboard.
String getExperimentTypeName ()
Get the experiment type name from the VariantInfo object.
Returns:
The experiment type as set on dashboard.
Int getParticipationPhase ()
Returns:
The first phase in which this device participated in this test for this cycle. * If this test has not been participated in during this cycle, this value will be 0.
Bool getUserHasParticipated ()
Get a boolean value indicating if the user has participated in the experiment.
Returns:
True if the user has participated.
String getUserId ()
Get the user id from the VariantInfo object.
Returns:
The user id as set by the setUserId method when the VariantInfo was created.
String getVariantName ()
Get the variant name from the VariantInfo object.
Returns:
The variant name as set on dashboard.