com.splitforce.lib
Class SplitforceVariation

java.lang.Object
  extended by com.splitforce.lib.SplitforceVariation
All Implemented Interfaces:
SfVariation

public class SplitforceVariation
extends java.lang.Object
implements SfVariation


Method Summary
 SfData getData(java.lang.String testSubject)
          Retrieves data stored for a particular subject.
 java.lang.String getExperimentName()
           
static SfVariation getInstance(android.content.Context context, ManifestRow manifestRow)
           
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SfVariation getInstance(android.content.Context context,
                                      ManifestRow manifestRow)

getData

public SfData getData(java.lang.String testSubject)
Description copied from interface: SfVariation
Retrieves data stored for a particular subject.

Specified by:
getData in interface SfVariation
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

public java.lang.String getExperimentName()
Specified by:
getExperimentName in interface SfVariation

trackQuantifiedGoal

public void trackQuantifiedGoal(java.lang.String name,
                                int quantity)
Description copied from interface: SfVariation
Track a goal with an arbitrary quantity.

Specified by:
trackQuantifiedGoal in interface SfVariation
Parameters:
name - The name of the goal
quantity - any integer

trackTime

public void trackTime(java.lang.String name,
                      float time)
Description copied from interface: SfVariation
Tack a timed goal. The current system time is sent.

Specified by:
trackTime in interface SfVariation
Parameters:
name - The name of the goal
time - The time in milliseconds

trackRateGoal

public void trackRateGoal(java.lang.String name)
Description copied from interface: SfVariation
Track a rate goal.

Specified by:
trackRateGoal in interface SfVariation
Parameters:
name - The name of the goal

sendEndGoal

public void sendEndGoal()
Description copied from interface: SfVariation
Track an end goal. Call this on Activity.onDestroy()

Specified by:
sendEndGoal in interface SfVariation