public final class InstallReferrerReceiver
extends android.content.BroadcastReceiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_INSTALL_REFERRER
Value - "install_referrer", keyname used to store the referrer string in volatile or persistent data.
|
Constructor and Description |
---|
InstallReferrerReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
onReceive(android.content.Context context,
android.content.Intent intent)
Handles the intent from the Android system containing the referrer information
If referrer is found, and Tealium is already initialized, it stores the referrer in the Tealium data model
|
static void |
setReferrerPersistent(java.lang.String tealiumInstanceName)
Method will add the install referrer string to the persistent data store and send with all future requests
|
static void |
setReferrerVolatile(java.lang.String tealiumInstanceName)
Method will add the install referrer string to the volatile data store and send with all requests until the app is closed
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String KEY_INSTALL_REFERRER
public static void setReferrerVolatile(java.lang.String tealiumInstanceName)
tealiumInstanceName
- String The Tealium instance name used when initializing Tealiumpublic static void setReferrerPersistent(java.lang.String tealiumInstanceName)
tealiumInstanceName
- String The Tealium instance name used when initializing Tealiumpublic void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver