public class ParseAnalytics
extends java.lang.Object
ParseAnalytics class provides an interface to Parse's logging and analytics backend.
Methods will return immediately and cache requests (+ timestamps) to be handled "eventually."
That is, the request will be sent immediately if possible or the next time a network connection
is available otherwise.| Constructor and Description |
|---|
ParseAnalytics() |
| Modifier and Type | Method and Description |
|---|---|
static <any> |
trackAppOpenedInBackground(android.content.Intent intent)
Tracks this application being launched (and if this happened as the result of the user opening
a push notification, this method sends along information to correlate this open with that
push).
|
static void |
trackAppOpenedInBackground(android.content.Intent intent,
SaveCallback callback)
Tracks this application being launched (and if this happened as the result of the user opening
a push notification, this method sends along information to correlate this open with that
push).
|
static <any> |
trackEventInBackground(java.lang.String name)
Tracks the occurrence of a custom event with additional dimensions.
|
static <any> |
trackEventInBackground(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> dimensions)
Tracks the occurrence of a custom event with additional dimensions.
|
static void |
trackEventInBackground(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> dimensions,
SaveCallback callback)
Tracks the occurrence of a custom event with additional dimensions.
|
static void |
trackEventInBackground(java.lang.String name,
SaveCallback callback)
Tracks the occurrence of a custom event.
|
public static <any> trackAppOpenedInBackground(android.content.Intent intent)
intent - The Intent that started an Activity, if any. Can be null.public static void trackAppOpenedInBackground(android.content.Intent intent,
SaveCallback callback)
intent - The Intent that started an Activity, if any. Can be null.callback - callback.done(e) is called when the event has been tracked by Parse.public static void trackEventInBackground(java.lang.String name,
SaveCallback callback)
name - The name of the custom event to report to Parse as having happened.callback - callback.done(e) is called when the event has been tracked by Parse.public static void trackEventInBackground(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> dimensions,
SaveCallback callback)
To track a user signup along with additional metadata, consider the following:
MapThere is a default limit of 8 dimensions per event tracked.dimensions = new HashMap (); dimensions.put("gender", "m"); dimensions.put("source", "web"); dimensions.put("dayType", "weekend"); ParseAnalytics.trackEvent("signup", dimensions);
name - The name of the custom event to report to Parse as having happened.dimensions - The dictionary of information by which to segment this event.callback - callback.done(e) is called when the event has been tracked by Parse.public static <any> trackEventInBackground(java.lang.String name)
To track a user signup along with additional metadata, consider the following:
MapThere is a default limit of 8 dimensions per event tracked.dimensions = new HashMap (); dimensions.put("gender", "m"); dimensions.put("source", "web"); dimensions.put("dayType", "weekend"); ParseAnalytics.trackEvent("signup", dimensions);
name - The name of the custom event to report to Parse as having happened.public static <any> trackEventInBackground(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> dimensions)
To track a user signup along with additional metadata, consider the following:
MapThere is a default limit of 8 dimensions per event tracked.dimensions = new HashMap (); dimensions.put("gender", "m"); dimensions.put("source", "web"); dimensions.put("dayType", "weekend"); ParseAnalytics.trackEvent("signup", dimensions);
name - The name of the custom event to report to Parse as having happened.dimensions - The dictionary of information by which to segment this event.