public class Adjust extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addSessionCallbackParameter(String key,
String value)
Called to add global callback parameter that will be sent with each session and event.
|
static void |
addSessionPartnerParameter(String key,
String value)
Called to add global partner parameter that will be sent with each session and event.
|
static void |
appWillOpenUrl(android.net.Uri url)
Called to process deep link.
|
static void |
gdprForgetMe(android.content.Context context)
Called to forget the user in accordance with GDPR law.
|
static String |
getAdid()
Called to get value of unique Adjust device identifier.
|
static String |
getAmazonAdId(android.content.Context context)
Called to get value of Amazon Advertising Identifier.
|
static AdjustAttribution |
getAttribution()
Called to get user's current attribution value.
|
static AdjustInstance |
getDefaultInstance()
Method used to obtain Adjust SDK singleton instance.
|
static void |
getGoogleAdId(android.content.Context context,
OnDeviceIdsRead onDeviceIdRead)
Called to get value of Google Play Advertising Identifier.
|
static boolean |
isEnabled()
Get information if SDK is enabled or not.
|
static void |
onCreate(AdjustConfig adjustConfig)
Called upon SDK initialisation.
|
static void |
onPause()
Called upon each Activity's onPause() method call.
|
static void |
onResume()
Called upon each Activity's onResume() method call.
|
static void |
removeSessionCallbackParameter(String key)
Called to remove global callback parameter from session and event packages.
|
static void |
removeSessionPartnerParameter(String key)
Called to remove global partner parameter from session and event packages.
|
static void |
resetSessionCallbackParameters()
Called to remove all added global callback parameters.
|
static void |
resetSessionPartnerParameters()
Called to remove all added global partner parameters.
|
static void |
sendFirstPackages()
Called if SDK initialisation was delayed and you would like to stop waiting for timer.
|
static void |
setEnabled(boolean enabled)
Called to disable/enable SDK.
|
static void |
setOfflineMode(boolean enabled)
Called to set SDK to offline or online mode.
|
static void |
setPushToken(String token)
Deprecated.
use
setPushToken(String, Context) instead. |
static void |
setPushToken(String token,
android.content.Context context)
Called to set user's push notifications token.
|
static void |
setReferrer(String referrer,
android.content.Context context)
Called to process referrer information sent with INSTALL_REFERRER intent.
|
static void |
setTestOptions(AdjustTestOptions testOptions)
Used for testing purposes only.
|
static void |
trackEvent(AdjustEvent event)
Called to track event.
|
public static AdjustInstance getDefaultInstance()
public static void onCreate(AdjustConfig adjustConfig)
adjustConfig - AdjustConfig object used for SDK initialisationpublic static void trackEvent(AdjustEvent event)
event - AdjustEvent object to be trackedpublic static void onResume()
public static void onPause()
public static void setEnabled(boolean enabled)
enabled - boolean indicating whether SDK should be enabled or disabledpublic static boolean isEnabled()
public static void appWillOpenUrl(android.net.Uri url)
url - Deep link URL to processpublic static void setReferrer(String referrer, android.content.Context context)
referrer - Referrer contentcontext - Application contextpublic static void setOfflineMode(boolean enabled)
enabled - boolean indicating should SDK be in offline mode (true) or not (false)public static void sendFirstPackages()
public static void addSessionCallbackParameter(String key, String value)
key - Global callback parameter keyvalue - Global callback parameter valuepublic static void addSessionPartnerParameter(String key, String value)
key - Global partner parameter keyvalue - Global partner parameter valuepublic static void removeSessionCallbackParameter(String key)
key - Global callback parameter keypublic static void removeSessionPartnerParameter(String key)
key - Global partner parameter keypublic static void resetSessionCallbackParameters()
public static void resetSessionPartnerParameters()
public static void setPushToken(String token)
setPushToken(String, Context) instead.token - Push notifications tokenpublic static void setPushToken(String token, android.content.Context context)
token - Push notifications tokencontext - Application contextpublic static void gdprForgetMe(android.content.Context context)
context - Application contextpublic static void getGoogleAdId(android.content.Context context,
OnDeviceIdsRead onDeviceIdRead)
context - Application contextonDeviceIdRead - Callback to get triggered once identifier is obtainedpublic static String getAmazonAdId(android.content.Context context)
context - Application contextpublic static String getAdid()
public static AdjustAttribution getAttribution()
public static void setTestOptions(AdjustTestOptions testOptions)
testOptions - Adjust integration tests optionsCopyright © 2018. All rights reserved.