public class ParseAnalytics extends Object
| Constructor and Description |
|---|
ParseAnalytics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
trackAppOpened(Intent intent)
Deprecated.
Please use
ParseAnalytics.trackAppOpenedInBackground(android.content.Intent) instead. |
static Task<Void> |
trackAppOpenedInBackground(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(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 void |
trackEvent(String name)
Deprecated.
Please use
ParseAnalytics.trackEventInBackground(String) instead. |
static void |
trackEvent(String name,
Map<String,String> dimensions)
Deprecated.
Please use
ParseAnalytics.trackEventInBackground(String, java.util.Map) instead. |
static Task<Void> |
trackEventInBackground(String name)
Tracks the occurrence of a custom event with additional dimensions.
|
static Task<Void> |
trackEventInBackground(String name,
Map<String,String> dimensions)
Tracks the occurrence of a custom event with additional dimensions.
|
static void |
trackEventInBackground(String name,
Map<String,String> dimensions,
SaveCallback callback)
Tracks the occurrence of a custom event with additional dimensions.
|
static void |
trackEventInBackground(String name,
SaveCallback callback)
Tracks the occurrence of a custom event.
|
public static Task<Void> trackAppOpenedInBackground(Intent intent)
intent - The Intent that started an Activity, if any. Can be null.@Deprecated public static void trackAppOpened(Intent intent)
ParseAnalytics.trackAppOpenedInBackground(android.content.Intent) instead.public static void trackAppOpenedInBackground(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.@Deprecated public static void trackEvent(String name)
ParseAnalytics.trackEventInBackground(String) instead.public static void trackEventInBackground(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.@Deprecated public static void trackEvent(String name, Map<String,String> dimensions)
ParseAnalytics.trackEventInBackground(String, java.util.Map) instead.public static void trackEventInBackground(String name, Map<String,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 Task<Void> trackEventInBackground(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 Task<Void> trackEventInBackground(String name, Map<String,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.