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