public class Client extends java.lang.Object implements ConfigCallback
| Constructor and Description |
|---|
Client(android.content.Context context)
Initialize Emergent client
|
Client(android.content.Context c,
boolean enableExceptionHandler)
Initialize a Emergent client
|
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
void |
onNewConfig(Config c) |
void |
sendLog()
Send log POSTs the current application log
to the Emergent analytics server
|
void |
setCustomBoolean(java.lang.String key,
java.lang.Boolean value) |
void |
setCustomInteger(java.lang.String key,
java.lang.Integer value) |
void |
setCustomString(java.lang.String key,
java.lang.String value) |
void |
updateConfig(Config config) |
public Client(@NonNull
android.content.Context context)
context - an Android context, usually thispublic Client(@NonNull
android.content.Context c,
boolean enableExceptionHandler)
context - an Android context, usually thisenableExceptionHandler - should we automatically handle uncaught exceptions?public void init()
public void onNewConfig(Config c)
onNewConfig in interface ConfigCallbackpublic void setCustomInteger(java.lang.String key,
java.lang.Integer value)
public void setCustomString(java.lang.String key,
java.lang.String value)
public void setCustomBoolean(java.lang.String key,
java.lang.Boolean value)
public void updateConfig(Config config)
public void sendLog()