com.splitforce.lib
Interface SfData

All Known Implementing Classes:
SplitforceData

public interface SfData

Wrapper class for a variation's data. Provides helper methods. Usually returned after SplitforceManager.initExperiment(String, SfListener)


Method Summary
 boolean toBoolean()
           
 int toColor()
          Parses color String hex into an integer hex value.
 double toDouble()
           
 float toFloat()
           
 int toInt()
           
 long toLong()
           
 int toPixelsFromDp(android.util.DisplayMetrics metrics)
          Returns the number of pixels represented by a dp unit on this particular screen.
 

Method Detail

toColor

int toColor()
Parses color String hex into an integer hex value.

Returns:
The color's integer hex.

toInt

int toInt()

toFloat

float toFloat()

toDouble

double toDouble()

toLong

long toLong()

toBoolean

boolean toBoolean()

toPixelsFromDp

int toPixelsFromDp(android.util.DisplayMetrics metrics)
Returns the number of pixels represented by a dp unit on this particular screen.

Parameters:
metrics - Used to get information about the user's screen.
Returns:
the number of pixels converted from dp