public final class ATInternet
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ATInternet.EncryptionMode
Enum for different encryption mode
|
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_OVERLAY_INTENT_RESULT_CODE
Overlay permission Activity result code
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationVersion()
Get custom application version
|
static java.lang.String |
getDatabasePath()
Get ATInternet database path
|
Tracker |
getDefaultTracker()
Get default tracker
|
static ATInternet.EncryptionMode |
getEncryptionMode()
Get ATInternet encryption mode
|
static ATInternet |
getInstance()
Get ATInternet singleton
|
Tracker |
getTracker(android.content.Context context,
java.lang.String trackerName)
Get a tracker with default configuration
|
Tracker |
getTracker(android.content.Context context,
java.lang.String trackerName,
java.util.HashMap<java.lang.String,java.lang.Object> configuration)
Get a tracker with custom configuration
|
Tracker |
getTracker(java.lang.String trackerName)
Get a tracker with default configuration
|
Tracker |
getTracker(java.lang.String trackerName,
java.util.HashMap<java.lang.String,java.lang.Object> configuration)
Get a tracker with custom configuration
|
java.lang.String |
getUserAgent()
Get user agent
|
static void |
optOut(android.content.Context context,
boolean enabled)
Deprecated.
|
static boolean |
optOutEnabled(android.content.Context context)
Deprecated.
|
void |
setApplicationVersion(java.lang.String apvr)
Method to override application version for all trackers
|
static void |
setDatabasePath(java.lang.String path)
Set ATInternet database path
|
static void |
setEncryptionMode(ATInternet.EncryptionMode encryptionMode)
Set ATInternet encryption mode
|
void |
setUserAgent(java.lang.String ua)
Method to override user agent for all trackers
|
public static final int ALLOW_OVERLAY_INTENT_RESULT_CODE
public static void setDatabasePath(java.lang.String path)
public static java.lang.String getDatabasePath()
public static void setEncryptionMode(ATInternet.EncryptionMode encryptionMode)
encryptionMode
- EncryptionModepublic static ATInternet.EncryptionMode getEncryptionMode()
@Deprecated public static void optOut(android.content.Context context, boolean enabled)
enabled
- /@Deprecated public static boolean optOutEnabled(android.content.Context context)
public static ATInternet getInstance()
public Tracker getDefaultTracker()
public Tracker getTracker(java.lang.String trackerName)
trackerName
- tracker identifierpublic Tracker getTracker(android.content.Context context, java.lang.String trackerName)
context
- current activity contexttrackerName
- tracker identifierpublic Tracker getTracker(java.lang.String trackerName, java.util.HashMap<java.lang.String,java.lang.Object> configuration)
trackerName
- tracker identifierconfiguration
- custom configuration (see TrackerConfigurationKeys)public Tracker getTracker(android.content.Context context, java.lang.String trackerName, java.util.HashMap<java.lang.String,java.lang.Object> configuration)
context
- current activity contexttrackerName
- tracker identifierconfiguration
- custom configuration (see TrackerConfigurationKeys)public java.lang.String getApplicationVersion()
public void setApplicationVersion(java.lang.String apvr)
apvr
- new application versionpublic java.lang.String getUserAgent()
public void setUserAgent(java.lang.String ua)
ua
- new user agent