public class AdjustInstance
extends java.lang.Object
Constructor and Description |
---|
AdjustInstance() |
Modifier and Type | Method and Description |
---|---|
void |
addSessionCallbackParameter(java.lang.String key,
java.lang.String value)
Called to add global callback parameter that will be sent with each session and event.
|
void |
addSessionPartnerParameter(java.lang.String key,
java.lang.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 |
appWillOpenUrl(android.net.Uri url,
android.content.Context context)
Called to process deep link.
|
void |
gdprForgetMe(android.content.Context context)
Called to forget the user in accordance with GDPR law.
|
java.lang.String |
getAdid()
Called to get value of unique Adjust device identifier.
|
AdjustAttribution |
getAttribution()
Called to get user's current attribution value.
|
java.lang.String |
getSdkVersion()
Called to get native SDK version string.
|
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(java.lang.String key)
Called to remove global callback parameter from session and event packages.
|
void |
removeSessionPartnerParameter(java.lang.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(java.lang.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(java.lang.String token)
Called to set user's push notifications token.
|
void |
setPushToken(java.lang.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 |
trackAdRevenue(java.lang.String source,
org.json.JSONObject adRevenueJson)
Track ad revenue from a source provider
|
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 appWillOpenUrl(android.net.Uri url, android.content.Context context)
url
- Deep link URL to processcontext
- Application contextpublic void sendReferrer(java.lang.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(java.lang.String key, java.lang.String value)
key
- Global callback parameter keyvalue
- Global callback parameter valuepublic void addSessionPartnerParameter(java.lang.String key, java.lang.String value)
key
- Global partner parameter keyvalue
- Global partner parameter valuepublic void removeSessionCallbackParameter(java.lang.String key)
key
- Global callback parameter keypublic void removeSessionPartnerParameter(java.lang.String key)
key
- Global partner parameter keypublic void resetSessionCallbackParameters()
public void resetSessionPartnerParameters()
public void teardown()
public void setPushToken(java.lang.String token)
token
- Push notifications tokenpublic void setPushToken(java.lang.String token, android.content.Context context)
token
- Push notifications tokencontext
- Application contextpublic void gdprForgetMe(android.content.Context context)
context
- Application contextpublic void trackAdRevenue(java.lang.String source, org.json.JSONObject adRevenueJson)
source
- Source of ad revenue information, see AdjustConfig.AD_REVENUE_* for some possible sourcesadRevenueJson
- JsonObject content of the ad revenue informationpublic java.lang.String getAdid()
public AdjustAttribution getAttribution()
public java.lang.String getSdkVersion()
public void setTestOptions(AdjustTestOptions testOptions)
testOptions
- Adjust integration tests options