com.splitforce.lib
Interface SfVariation

All Known Implementing Classes:
SplitforceVariation

public interface SfVariation

Represents a Splitforce Experiment variation.


Method Summary
 SfData getData(java.lang.String testSubject)
          Retrieves data stored for a particular subject.
 java.lang.String getExperimentName()
           
 void sendEndGoal()
          Track an end goal.
 void trackQuantifiedGoal(java.lang.String name, int quantity)
          Track a goal with an arbitrary quantity.
 void trackRateGoal(java.lang.String name)
          Track a rate goal.
 void trackTime(java.lang.String name, float time)
          Tack a timed goal.
 

Method Detail

getData

SfData getData(java.lang.String testSubject)
Retrieves data stored for a particular subject.

Parameters:
testSubject - The key you stored a test subject under
Returns:
The localized text for the user's default locale or the fallback value

getExperimentName

java.lang.String getExperimentName()

trackQuantifiedGoal

void trackQuantifiedGoal(java.lang.String name,
                         int quantity)
Track a goal with an arbitrary quantity.

Parameters:
name - The name of the goal
quantity - any integer

trackTime

void trackTime(java.lang.String name,
               float time)
Tack a timed goal. The current system time is sent.

Parameters:
name - The name of the goal
time - The time in milliseconds

trackRateGoal

void trackRateGoal(java.lang.String name)
Track a rate goal.

Parameters:
name - The name of the goal

sendEndGoal

void sendEndGoal()
Track an end goal. Call this on Activity.onDestroy()