|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netmera.mobile.NetmeraEvent
public class NetmeraEvent
NetmeraEvent
is used to send custom events and app analytic events
about app open/close and time in app to Netmera Analytics service.
Method Summary | |
---|---|
static void |
clearUnSendedEvents()
Deletes all events that can not be sent to Netmera for some reasons and waiting for sending. |
static void |
onStart(android.app.Activity activity)
Use for tracking activity start. |
static void |
onStop(android.app.Activity activity)
Use for tracking activity end. |
static void |
sendCustomEvent(java.lang.String key)
This method is used to send your custom events which can be used to specify to trigger push notifications or create segments to Netmera. |
static void |
sendCustomEventWithData(java.lang.String key,
org.json.JSONObject data)
This method is used to send your custom events which can be used to specify to trigger push notifications or create segments to Netmera. |
static void |
sendEvent(java.lang.String key,
org.json.JSONObject value)
This method is used to send events which can be used to specify to trigger push notifications or create segments to Netmera. |
static void |
sendPushClickedEvent(android.content.Intent intent)
|
static void |
sendTestGroupEvent(android.app.Activity activity)
This method is used to add the device to test group, this method must be called inside the activity which is opened through the invite testers mail of Netmera. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void sendCustomEvent(java.lang.String key) throws NetmeraException
key
- Event name
NetmeraException
- if key is empty or null & if your Netmera account type does
not allow sending custom events.public static void sendCustomEventWithData(java.lang.String key, org.json.JSONObject data) throws NetmeraException
key
- Event namedata
- Event data
NetmeraException
- if key is empty or null & if your Netmera account type does
not allow sending custom events.public static void sendTestGroupEvent(android.app.Activity activity)
activity
- Current activity i.e. thispublic static void sendEvent(java.lang.String key, org.json.JSONObject value) throws NetmeraException
key
- Event namevalue
- Event data
NetmeraException
- if key is empty, key can not be empty.public static void sendPushClickedEvent(android.content.Intent intent)
public static void onStart(android.app.Activity activity)
Activity.onStart()
activity
- Current activity i.e. thispublic static void onStop(android.app.Activity activity)
Activity.onStop()
activity
- Current activity i.e. thispublic static void clearUnSendedEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |