public final class Analytics
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Analytics.BEACON_PROXIMITY |
static interface |
Analytics.TimedActionBlock<Boolean>
The interface definition for the logic block that can be passed to the method trackTimedActionEnd to perform custom logic.
|
| Constructor and Description |
|---|
Analytics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearBeacon() |
static void |
clearQueue()
Removes all unsent hits from the queue
|
static long |
getQueueSize()
Returns the total number of hits currently in the queue
WARNING - this call will block the thread it is being called from and wait for a return.
|
static java.lang.String |
getTrackingIdentifier()
Retrieves identifier generated by Analytics for this app/device instance
WARNING - this call will block the thread it is being called from and wait for a return.
|
static void |
processGooglePlayInstallReferrerUrl(java.lang.String referrerUrl)
Retrieves acquisition data from the provided Google Play Install Referrer URL
The data collected from this API will be sent on install hits sent to Analytics, and
will be available in the Adobe Data Callback.
|
static void |
processReferrer(Context context,
Intent intent)
Processes referrer campaign data from the Google Play Store for later use.
|
static void |
sendQueuedHits()
Sends all queued hits
|
static void |
trackAction(java.lang.String action,
java.util.Map<java.lang.String,java.lang.Object> contextData) |
static void |
trackBeacon(java.lang.String uuid,
java.lang.String major,
java.lang.String minor,
Analytics.BEACON_PROXIMITY proximity,
java.util.Map<java.lang.String,java.lang.Object> contextData) |
static boolean |
trackingTimedActionExists(java.lang.String action)
Checks to see if a timed action exists
|
static void |
trackLifetimeValueIncrease(java.math.BigDecimal amount,
java.util.HashMap<java.lang.String,java.lang.Object> contextData) |
static void |
trackLocation(Location location,
java.util.Map<java.lang.String,java.lang.Object> contextData) |
static void |
trackState(java.lang.String state,
java.util.Map<java.lang.String,java.lang.Object> contextData) |
static void |
trackTimedActionEnd(java.lang.String action,
Analytics.TimedActionBlock<java.lang.Boolean> logic)
Tracks the end of a timed action
This method will send a tracking hit if the parameter logic is nil or returns YES.
|
static void |
trackTimedActionStart(java.lang.String action,
java.util.Map<java.lang.String,java.lang.Object> contextData)
Tracks the start of a timed action
This method does not send a tracking hit.
|
static void |
trackTimedActionUpdate(java.lang.String action,
java.util.Map<java.lang.String,java.lang.Object> contextData)
Tracks the update of a timed action
This method does not send a tracking hit
When the timed action is updated the contents of the parameter data will overwrite existing context data keys and append new ones.
|
public static void trackState(java.lang.String state,
java.util.Map<java.lang.String,java.lang.Object> contextData)
public static void trackAction(java.lang.String action,
java.util.Map<java.lang.String,java.lang.Object> contextData)
public static void trackLocation(Location location,
java.util.Map<java.lang.String,java.lang.Object> contextData)
public static void trackBeacon(java.lang.String uuid,
java.lang.String major,
java.lang.String minor,
Analytics.BEACON_PROXIMITY proximity,
java.util.Map<java.lang.String,java.lang.Object> contextData)
public static void clearBeacon()
public static void trackLifetimeValueIncrease(java.math.BigDecimal amount,
java.util.HashMap<java.lang.String,java.lang.Object> contextData)
public static void trackTimedActionStart(java.lang.String action,
java.util.Map<java.lang.String,java.lang.Object> contextData)
action - a required String that denotes the name of the timed action to track.contextData - optional HashMap containing context data to track with this timed action.public static void trackTimedActionUpdate(java.lang.String action,
java.util.Map<java.lang.String,java.lang.Object> contextData)
action - a required String that denotes the name of the timed action to track.contextData - optional HashMap containing context data to track with this timed action.public static void trackTimedActionEnd(java.lang.String action,
Analytics.TimedActionBlock<java.lang.Boolean> logic)
action - a required String that denotes the name of the timed action to finish tracking.logic - optional TimedActionBlock to perform logic and update parameters when this timed action ends, this block can cancel the sending of the hit by returning NO.Analytics.TimedActionBlockpublic static boolean trackingTimedActionExists(java.lang.String action)
action - a required String that denotes the name of the timed action to check for.public static void processReferrer(Context context,
Intent intent)
context - a required Context to be forwarded from your BroadcastReceiver.intent - a required Intent to be forwarded from your BroadcastReceiver.public static void processGooglePlayInstallReferrerUrl(java.lang.String referrerUrl)
referrerUrl - String containing the string returned by
InstallReferrerClient.getInstallReferrer()Config.AdobeDataCallbackpublic static java.lang.String getTrackingIdentifier()
public static long getQueueSize()
public static void clearQueue()
public static void sendQueuedHits()