public class Identify extends Object
Identify identify = new Identify().set("color", "green").add("karma", 1);
Rakam.getInstance().identify(identify); and pass in the object.| Modifier and Type | Field and Description |
|---|---|
static String |
TAG
The class identifier tag used in logging.
|
protected Set<String> |
userProperties
Internal set to keep track of user property keys and test for duplicates.
|
protected org.json.JSONObject |
userPropertiesOperations
Internal
JSONObject to hold all of the user property operations. |
| Constructor and Description |
|---|
Identify() |
| Modifier and Type | Method and Description |
|---|---|
Identify |
add(String property,
double value)
Increment a user property by some numerical value.
|
Identify |
add(String property,
float value)
Increment a user property by some numerical value.
|
Identify |
add(String property,
int value)
Increment a user property by some numerical value.
|
Identify |
add(String property,
org.json.JSONObject values)
Increment a user property by some numerical value.
|
Identify |
add(String property,
long value)
Increment a user property by some numerical value.
|
Identify |
add(String property,
String value)
Increment a user property by some numerical value.
|
Identify |
clearAll()
Clear all user properties.
|
Identify |
set(String property,
boolean value)
Sets a user property value.
|
Identify |
set(String property,
boolean[] values)
Sets a user property value.
|
Identify |
set(String property,
double value)
Sets a user property value.
|
Identify |
set(String property,
double[] values)
Sets a user property value.
|
Identify |
set(String property,
float value)
Sets a user property value.
|
Identify |
set(String property,
float[] values)
Sets a user property value.
|
Identify |
set(String property,
int value)
Sets a user property value.
|
Identify |
set(String property,
int[] values)
Sets a user property value.
|
Identify |
set(String property,
org.json.JSONArray values)
Sets a user property value.
|
Identify |
set(String property,
org.json.JSONObject values)
Sets a user property value.
|
Identify |
set(String property,
long value)
Sets a user property value.
|
Identify |
set(String property,
long[] values)
Sets a user property value.
|
Identify |
set(String property,
String value)
Sets a user property value.
|
Identify |
set(String property,
String[] values)
Sets a user property value.
|
Identify |
setOnce(String property,
boolean value)
Sets a user property value only once.
|
Identify |
setOnce(String property,
boolean[] values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
double value)
Sets a user property value only once.
|
Identify |
setOnce(String property,
double[] values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
float value)
Sets a user property value only once.
|
Identify |
setOnce(String property,
float[] values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
int value)
Sets a user property value only once.
|
Identify |
setOnce(String property,
int[] values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
org.json.JSONArray values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
org.json.JSONObject values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
long value)
Sets a user property value only once.
|
Identify |
setOnce(String property,
long[] values)
Sets a user property value only once.
|
Identify |
setOnce(String property,
String value)
Sets a user property value only once.
|
Identify |
setOnce(String property,
String[] values)
Sets a user property value only once.
|
Identify |
unset(String property)
Unset and remove a user property.
|
public static final String TAG
"Identify";protected org.json.JSONObject userPropertiesOperations
JSONObject to hold all of the user property operations.public Identify setOnce(String property, boolean value)
property - the user property to setOncevalue - the value of the user propertypublic Identify setOnce(String property, double value)
property - the user property to setOncevalue - the value of the user propertypublic Identify setOnce(String property, float value)
property - the user property to setOncevalue - the value of the user propertypublic Identify setOnce(String property, int value)
property - the user property to setOncevalue - the value of the user propertypublic Identify setOnce(String property, long value)
property - the user property to setOncevalue - the value of the user propertypublic Identify setOnce(String property, String value)
property - the user property to setOncevalue - the value of the user propertypublic Identify setOnce(String property, org.json.JSONArray values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, org.json.JSONObject values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, boolean[] values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, double[] values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, float[] values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, int[] values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, long[] values)
property - the user property to setOncevalues - the value of the user propertypublic Identify setOnce(String property, String[] values)
property - the user property to setOncevalues - the value of the user propertypublic Identify set(String property, boolean value)
property - the user property to setvalue - the value of the user propertypublic Identify set(String property, double value)
property - the user property to setvalue - the value of the user propertypublic Identify set(String property, float value)
property - the user property to setvalue - the value of the user propertypublic Identify set(String property, int value)
property - the user property to setvalue - the value of the user propertypublic Identify set(String property, long value)
property - the user property to setvalue - the value of the user propertypublic Identify set(String property, String value)
property - the user property to setvalue - the value of the user propertypublic Identify set(String property, org.json.JSONObject values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, org.json.JSONArray values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, boolean[] values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, double[] values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, float[] values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, int[] values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, long[] values)
property - the user property to setvalues - the value of the user propertypublic Identify set(String property, String[] values)
property - the user property to setvalues - the value of the user propertypublic Identify add(String property, double value)
property - the user property to incrementvalue - the value (can be negative) to incrementpublic Identify add(String property, float value)
property - the user property to incrementvalue - the value (can be negative) to incrementpublic Identify add(String property, int value)
property - the user property to incrementvalue - the value (can be negative) to incrementpublic Identify add(String property, long value)
property - the user property to incrementvalue - the value (can be negative) to incrementpublic Identify add(String property, String value)
property - the user property to incrementvalue - the value (can be negative) to increment. Server-side we convert
the string into a number if possible.public Identify add(String property, org.json.JSONObject values)
property - the user property to incrementvalues - the value (can be negative) to increment. Server-side we flatten
dictionaries and apply add to each flattened property value.public Identify unset(String property)
property - the user property to unset and remove.public Identify clearAll()
Copyright © 2016. All rights reserved.