public final class Analytics extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearQueue()
Clears all hits from the tracking queue and removes them from the database.
|
static String |
extensionVersion()
Returns the current version of the Analytics extension.
|
static void |
getQueueSize(com.adobe.marketing.mobile.AdobeCallback<Long> callback)
Retrieves the total number of analytics hits currently in the tracking queue.
|
static void |
getTrackingIdentifier(com.adobe.marketing.mobile.AdobeCallback<String> callback)
Retrieves the analytics tracking identifier generated for this app/device instance.
|
static void |
getVisitorIdentifier(com.adobe.marketing.mobile.AdobeCallback<String> callback)
Retrieves the visitor identifier
|
static void |
registerExtension()
Registers the Analytics extension with the
MobileCore. |
static void |
sendQueuedHits()
Forces analytics to send all queued hits regardless of current batch options.
|
static void |
setVisitorIdentifier(String visitorID)
Sets the visitor identifier
|
public static String extensionVersion()
String representing the Analytics extension versionpublic static void registerExtension()
MobileCore.
This will allow the extension to send and receive events to and from the SDK.
public static void clearQueue()
public static void getQueueSize(com.adobe.marketing.mobile.AdobeCallback<Long> callback)
callback - AdobeCallback invoked with the queue size long value;
when an AdobeCallbackWithError is provided, an AdobeError can be returned in the
eventuality of an unexpected error or if the default timeout (5000ms) is met before the callback is returned with queue size.public static void getTrackingIdentifier(com.adobe.marketing.mobile.AdobeCallback<String> callback)
callback - AdobeCallback invoked with the analytics identifier String value;
when an AdobeCallbackWithError is provided, an AdobeError can be returned in the
eventuality of an unexpected error or if the default timeout (5000ms) is met before the callback is returned with analytics tracking identifier.public static void getVisitorIdentifier(com.adobe.marketing.mobile.AdobeCallback<String> callback)
callback - AdobeCallback invoked with the visitor identifier String value;
when an AdobeCallbackWithError is provided, an AdobeError can be returned in the
eventuality of an unexpected error or if the default timeout (5000ms) is met before the callback is returned with visitor identifier.public static void sendQueuedHits()
public static void setVisitorIdentifier(String visitorID)
visitorID - String new value for visitor identifier