|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectio.replay.framework.ReplayIO
public final class ReplayIO
| Constructor Summary | |
|---|---|
ReplayIO()
|
|
| Method Summary | |
|---|---|
static int |
count()
|
static void |
disable()
Disable ReplayIO. |
static void |
dispatch()
Dispatch immediately. |
static void |
enable()
Enable ReplayIO. |
static Config |
getConfig()
|
static java.lang.String |
getOrGenerateClientUUID()
Get or generate a UUID as the client UUID. |
static void |
identify()
Clear the saved distinct ID. |
static void |
identify(java.lang.String distinctId)
Set the distinct ID to the value passed in. |
static void |
init(android.content.Context context)
Initializes the ReplayIO client. |
static void |
init(android.content.Context context,
Config options)
Initializes the ReplayIO client. |
static void |
init(android.content.Context context,
java.lang.String apiKey)
Initializes the ReplayIO client. |
static boolean |
isDebugMode()
Tell if debug mode is enabled. |
static boolean |
isEnabled()
Tell if ReplayIO is enabled. |
static void |
onActivityCreate(android.content.Context context)
Initializes the Replay.io client, kicks off all worker threads, and notifies the client that this activity has been created. |
static void |
onActivityCreate(android.content.Context context,
Config options)
Initializes the Replay.io client, kicks off all worker threads, and notifies the client that this activity has been created. |
static void |
onActivityCreate(android.content.Context context,
java.lang.String apiKey)
Initializes the Replay.io client, kicks off all worker threads, and notifies the client that this activity has been created. |
static void |
onActivityPause(android.content.Context context)
Called when the activity is paused. |
static void |
onActivityResume(android.content.Context context)
Called when the activity has been resumed. |
static void |
onActivityStart(android.content.Context context)
Initializes the Replay.io client, kicks off all worker threads, and notifies the client that this activity has been created. |
static void |
onActivityStart(android.content.Context context,
Config options)
Initializes the Replay.io client, kicks off all worker threads, and notifies the client that this activity has been created. |
static void |
onActivityStart(android.content.Context context,
java.lang.String apiKey)
Initializes the Replay.io client, kicks off all worker threads, and notifies the client that this activity has been created. |
static void |
onActivityStop(android.content.Context context)
Called when the activity has been stopped. |
static void |
setDebugMode(boolean debug)
Set debug mode. |
static void |
start()
Called when the app entered foreground. |
static void |
stop()
Called when the app entered background. |
static void |
track(java.lang.String eventName)
Send event to the server. |
static void |
track(java.lang.String eventName,
java.util.Map<java.lang.String,?> data)
Send event with data to server. |
static void |
track(java.lang.String eventName,
java.lang.Object... data)
Send event with data to server. |
static void |
updateTraits(java.util.Map<java.lang.String,?> data)
Update traits. |
static void |
updateTraits(java.lang.Object... data)
Update traits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplayIO()
| Method Detail |
|---|
public static void init(android.content.Context context)
/res/values/replay_io.xml,
including the Replay API key, which is required to be present in order to communicate with the server.
It is acceptable to call this class from the main UI thread.
context - The application context. Use application context instead of activity context
to avoid the risk of memory leak.
public static void init(android.content.Context context,
java.lang.String apiKey)
/res/values/replay_io.xml,
including the Replay API key, which is required to be present in order to communicate with the server.
It is acceptable to call this class from the main UI thread.
context - The application context. We use application context instead of activity context
to avoid the risk of memory leak.apiKey - the Replay API key
public static void init(android.content.Context context,
Config options)
throws ReplayIONoKeyException
options
object, including the Replay API key, which is required to be present in order to communicate with the server.
It is acceptable to call this class from the main UI thread.
context - The application context. We use application context instead of activity context
to avoid the risk of memory leak.options - a full Config object that contains initialization parameters.
ReplayIONoKeyExceptionpublic static void track(java.lang.String eventName)
eventName - Name of the event
public static void track(java.lang.String eventName,
java.lang.Object... data)
eventName - Name of the event.data - Extra information to be tracked in the main JSON object.
public static void track(java.lang.String eventName,
java.util.Map<java.lang.String,?> data)
eventName - Name of the event.data - Extra information to be tracked in the main JSON object.public static void updateTraits(java.lang.Object... data)
data - Extra information to be tracked in the main JSON object.public static void updateTraits(java.util.Map<java.lang.String,?> data)
data - Extra information to be tracked in the main JSON object.public static void dispatch()
public static void enable()
public static void disable()
public static boolean isEnabled()
public static boolean isDebugMode()
public static void setDebugMode(boolean debug)
debug - Boolean value to set to.public static void stop()
ReplayQueue will stop running,
, and the Session will be ended, too.
.
public static void start()
ReplayQueue will be restarted.
A new session is started. If there are persisted requests, load them into queue.
public static java.lang.String getOrGenerateClientUUID()
public static void onActivityCreate(android.content.Context context)
context - an instance of the Activity
public static void onActivityCreate(android.content.Context context,
java.lang.String apiKey)
context - an instance of the ActivityapiKey - the Replay API key
public static void onActivityCreate(android.content.Context context,
Config options)
context - an instance of the Activityoptions - a full Config object that contains initialization parameters.public static void onActivityStart(android.content.Context context)
context - an instance of the Activity
public static void onActivityStart(android.content.Context context,
java.lang.String apiKey)
context - an instance of the ActivityapiKey - the Replay API key
public static void onActivityStart(android.content.Context context,
Config options)
context - an instance of the Activityoptions - a full Config object that contains initialization parameters.public static void onActivityResume(android.content.Context context)
context - the activitypublic static void onActivityPause(android.content.Context context)
context - the activitypublic static void onActivityStop(android.content.Context context)
context - public static void identify(java.lang.String distinctId)
distinctId - New ID.public static void identify()
ReplayIO.identify("");.
public static int count()
public static Config getConfig()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||