public class AmplitudePlugin
extends java.lang.Object
Constructor and Description |
---|
AmplitudePlugin() |
Modifier and Type | Method and Description |
---|---|
static void |
addUserProperty(java.lang.String property,
double value) |
static void |
addUserProperty(java.lang.String property,
float value) |
static void |
addUserProperty(java.lang.String property,
int value) |
static void |
addUserProperty(java.lang.String property,
long value) |
static void |
addUserProperty(java.lang.String property,
java.lang.String value) |
static void |
addUserPropertyDict(java.lang.String property,
java.lang.String values) |
static void |
appendUserProperty(java.lang.String property,
boolean value) |
static void |
appendUserProperty(java.lang.String property,
boolean[] values) |
static void |
appendUserProperty(java.lang.String property,
double value) |
static void |
appendUserProperty(java.lang.String property,
double[] values) |
static void |
appendUserProperty(java.lang.String property,
float value) |
static void |
appendUserProperty(java.lang.String property,
float[] values) |
static void |
appendUserProperty(java.lang.String property,
int value) |
static void |
appendUserProperty(java.lang.String property,
int[] values) |
static void |
appendUserProperty(java.lang.String property,
long value) |
static void |
appendUserProperty(java.lang.String property,
long[] values) |
static void |
appendUserProperty(java.lang.String property,
java.lang.String value) |
static void |
appendUserProperty(java.lang.String property,
java.lang.String[] values) |
static void |
appendUserPropertyDict(java.lang.String property,
java.lang.String values) |
static void |
appendUserPropertyList(java.lang.String property,
java.lang.String values) |
static void |
clearUserProperties() |
static void |
enableForegroundTracking(android.app.Application app) |
static void |
endSession()
Deprecated.
|
static java.lang.String |
getDeviceId() |
static void |
init(android.content.Context context,
java.lang.String apiKey) |
static void |
init(android.content.Context context,
java.lang.String apiKey,
java.lang.String userId) |
static void |
logEvent(java.lang.String event) |
static void |
logEvent(java.lang.String event,
java.lang.String jsonProperties) |
static void |
logEvent(java.lang.String event,
java.lang.String jsonProperties,
boolean outOfSession) |
static void |
logRevenue(double amount) |
static void |
logRevenue(java.lang.String productId,
int quantity,
double price) |
static void |
logRevenue(java.lang.String productId,
int quantity,
double price,
java.lang.String receipt,
java.lang.String receiptSignature) |
static void |
logRevenue(java.lang.String productId,
int quantity,
double price,
java.lang.String receipt,
java.lang.String receiptSignature,
java.lang.String revenueType,
java.lang.String jsonProperties) |
static void |
regenerateDeviceId() |
static void |
setOnceUserProperty(java.lang.String property,
boolean value) |
static void |
setOnceUserProperty(java.lang.String property,
boolean[] values) |
static void |
setOnceUserProperty(java.lang.String property,
double value) |
static void |
setOnceUserProperty(java.lang.String property,
double[] values) |
static void |
setOnceUserProperty(java.lang.String property,
float value) |
static void |
setOnceUserProperty(java.lang.String property,
float[] values) |
static void |
setOnceUserProperty(java.lang.String property,
int value) |
static void |
setOnceUserProperty(java.lang.String property,
int[] values) |
static void |
setOnceUserProperty(java.lang.String property,
long value) |
static void |
setOnceUserProperty(java.lang.String property,
long[] values) |
static void |
setOnceUserProperty(java.lang.String property,
java.lang.String value) |
static void |
setOnceUserProperty(java.lang.String property,
java.lang.String[] values) |
static void |
setOnceUserPropertyDict(java.lang.String property,
java.lang.String values) |
static void |
setOnceUserPropertyList(java.lang.String property,
java.lang.String values) |
static void |
setOptOut(boolean enabled) |
static void |
setUserId(java.lang.String userId) |
static void |
setUserProperties(java.lang.String jsonProperties) |
static void |
setUserProperty(java.lang.String property,
boolean value) |
static void |
setUserProperty(java.lang.String property,
boolean[] values) |
static void |
setUserProperty(java.lang.String property,
double value) |
static void |
setUserProperty(java.lang.String property,
double[] values) |
static void |
setUserProperty(java.lang.String property,
float value) |
static void |
setUserProperty(java.lang.String property,
float[] values) |
static void |
setUserProperty(java.lang.String property,
int value) |
static void |
setUserProperty(java.lang.String property,
int[] values) |
static void |
setUserProperty(java.lang.String property,
long value) |
static void |
setUserProperty(java.lang.String property,
long[] values) |
static void |
setUserProperty(java.lang.String property,
java.lang.String value) |
static void |
setUserProperty(java.lang.String property,
java.lang.String[] values) |
static void |
setUserPropertyDict(java.lang.String property,
java.lang.String values) |
static void |
setUserPropertyList(java.lang.String property,
java.lang.String values) |
static void |
startSession()
Deprecated.
|
static org.json.JSONObject |
ToJSONObject(java.lang.String jsonString) |
static void |
trackSessionEvents(boolean enabled) |
static void |
unsetUserProperty(java.lang.String property) |
public static org.json.JSONObject ToJSONObject(java.lang.String jsonString)
public static void init(android.content.Context context, java.lang.String apiKey)
public static void init(android.content.Context context, java.lang.String apiKey, java.lang.String userId)
public static void enableForegroundTracking(android.app.Application app)
@Deprecated public static void startSession()
@Deprecated public static void endSession()
public static void logEvent(java.lang.String event)
public static void logEvent(java.lang.String event, java.lang.String jsonProperties)
public static void logEvent(java.lang.String event, java.lang.String jsonProperties, boolean outOfSession)
public static void setUserId(java.lang.String userId)
public static void setOptOut(boolean enabled)
public static void setUserProperties(java.lang.String jsonProperties)
public static void logRevenue(double amount)
public static void logRevenue(java.lang.String productId, int quantity, double price)
public static void logRevenue(java.lang.String productId, int quantity, double price, java.lang.String receipt, java.lang.String receiptSignature)
public static void logRevenue(java.lang.String productId, int quantity, double price, java.lang.String receipt, java.lang.String receiptSignature, java.lang.String revenueType, java.lang.String jsonProperties)
public static java.lang.String getDeviceId()
public static void regenerateDeviceId()
public static void trackSessionEvents(boolean enabled)
public static void clearUserProperties()
public static void unsetUserProperty(java.lang.String property)
public static void setOnceUserProperty(java.lang.String property, boolean value)
public static void setOnceUserProperty(java.lang.String property, double value)
public static void setOnceUserProperty(java.lang.String property, float value)
public static void setOnceUserProperty(java.lang.String property, int value)
public static void setOnceUserProperty(java.lang.String property, long value)
public static void setOnceUserProperty(java.lang.String property, java.lang.String value)
public static void setOnceUserPropertyDict(java.lang.String property, java.lang.String values)
public static void setOnceUserPropertyList(java.lang.String property, java.lang.String values)
public static void setOnceUserProperty(java.lang.String property, boolean[] values)
public static void setOnceUserProperty(java.lang.String property, double[] values)
public static void setOnceUserProperty(java.lang.String property, float[] values)
public static void setOnceUserProperty(java.lang.String property, int[] values)
public static void setOnceUserProperty(java.lang.String property, long[] values)
public static void setOnceUserProperty(java.lang.String property, java.lang.String[] values)
public static void setUserProperty(java.lang.String property, boolean value)
public static void setUserProperty(java.lang.String property, double value)
public static void setUserProperty(java.lang.String property, float value)
public static void setUserProperty(java.lang.String property, int value)
public static void setUserProperty(java.lang.String property, long value)
public static void setUserProperty(java.lang.String property, java.lang.String value)
public static void setUserPropertyDict(java.lang.String property, java.lang.String values)
public static void setUserPropertyList(java.lang.String property, java.lang.String values)
public static void setUserProperty(java.lang.String property, boolean[] values)
public static void setUserProperty(java.lang.String property, double[] values)
public static void setUserProperty(java.lang.String property, float[] values)
public static void setUserProperty(java.lang.String property, int[] values)
public static void setUserProperty(java.lang.String property, long[] values)
public static void setUserProperty(java.lang.String property, java.lang.String[] values)
public static void addUserProperty(java.lang.String property, double value)
public static void addUserProperty(java.lang.String property, float value)
public static void addUserProperty(java.lang.String property, int value)
public static void addUserProperty(java.lang.String property, long value)
public static void addUserProperty(java.lang.String property, java.lang.String value)
public static void addUserPropertyDict(java.lang.String property, java.lang.String values)
public static void appendUserProperty(java.lang.String property, boolean value)
public static void appendUserProperty(java.lang.String property, double value)
public static void appendUserProperty(java.lang.String property, float value)
public static void appendUserProperty(java.lang.String property, int value)
public static void appendUserProperty(java.lang.String property, long value)
public static void appendUserProperty(java.lang.String property, java.lang.String value)
public static void appendUserPropertyDict(java.lang.String property, java.lang.String values)
public static void appendUserPropertyList(java.lang.String property, java.lang.String values)
public static void appendUserProperty(java.lang.String property, boolean[] values)
public static void appendUserProperty(java.lang.String property, double[] values)
public static void appendUserProperty(java.lang.String property, float[] values)
public static void appendUserProperty(java.lang.String property, int[] values)
public static void appendUserProperty(java.lang.String property, long[] values)
public static void appendUserProperty(java.lang.String property, java.lang.String[] values)