public class Tweaks
extends java.lang.Object
MixpanelAPI.stringTweak(String, String)
, MixpanelAPI.booleanTweak(String, boolean)
,
MixpanelAPI.doubleTweak(String, double)
, MixpanelAPI.longTweak(String, long)
,
and other tweak-related interfaces on MixpanelAPI.
Instances of tweaks aren't available to library user code.Modifier and Type | Class and Description |
---|---|
static interface |
Tweaks.OnTweakDeclaredListener
This interface is used internally to expose tweaks to the Mixpanel UI,
and will likely not be directly useful to code that imports the Mixpanel library.
|
static class |
Tweaks.TweakValue
Represents the value and definition of a tweak known to the system.
|
Modifier and Type | Field and Description |
---|---|
static int |
BOOLEAN_TYPE
An internal description of the type of a tweak.
|
static int |
DOUBLE_TYPE
An internal description of the type of a tweak.
|
static int |
LONG_TYPE
An internal description of the type of a tweak.
|
static int |
STRING_TYPE
An internal description of the type of a tweak.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnTweakDeclaredListener(Tweaks.OnTweakDeclaredListener listener)
This method is used internally to expose tweaks to the Mixpanel UI,
and will likely not be directly useful to code that imports the Mixpanel library.
|
java.util.Map<java.lang.String,Tweaks.TweakValue> |
getAllValues()
Returns the descriptions of all tweaks that currently exist.
|
void |
set(java.lang.String tweakName,
java.lang.Object value)
Manually set the value of a tweak.
|
public static final int BOOLEAN_TYPE
public static final int DOUBLE_TYPE
public static final int LONG_TYPE
public static final int STRING_TYPE
public void addOnTweakDeclaredListener(Tweaks.OnTweakDeclaredListener listener)
public void set(java.lang.String tweakName, java.lang.Object value)
public java.util.Map<java.lang.String,Tweaks.TweakValue> getAllValues()