public class AppsFlyerLibCore extends AppsFlyerLib
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AF_PRE_INSTALL_PATH |
static java.lang.String |
BUILD_NUMBER |
static java.lang.String |
BUILD_URL_SUFFIX |
static AppsFlyerConversionListener |
conversionDataListener |
EventDataCollector |
eventDataCollector |
static java.lang.String |
FIRST_LAUNCHES_URL |
static java.lang.String |
INSTALL_REFERRER_PREF |
static java.lang.String |
INSTALL_UPDATE_DATE_FORMAT |
static AppsFlyerLibCore |
instance |
static java.lang.String |
IS_STOP_TRACKING_USED |
static java.lang.String |
LOG_TAG |
static java.lang.String |
PRE_INSTALL_SYSTEM_DEFAULT |
static java.lang.String |
PRE_INSTALL_SYSTEM_DEFAULT_ETC |
static java.lang.String |
PRE_INSTALL_SYSTEM_RO_PROP |
static java.lang.String |
REFERRER_TRACKING_URL |
static java.lang.String |
SERVER_BUILD_NUMBER |
java.lang.String[] |
sharingFilter |
| Constructor and Description |
|---|
AppsFlyerLibCore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNetworkData(android.content.Context context,
java.util.Map<java.lang.String,? super java.lang.String> registerParams) |
void |
addPushNotificationDeepLinkPath(java.lang.String... deepLinkPath)
Resolve deep links from the push notification.
|
void |
anonymizeUser(boolean shouldAnonymize)
Anonymize user Data.
|
void |
appendParametersToDeepLinkingURL(java.lang.String contains,
java.util.Map<java.lang.String,java.lang.String> parameters) |
java.lang.String |
dateFormatUTC(java.text.SimpleDateFormat dateFormat,
long time) |
void |
enableFacebookDeferredApplinks(boolean isEnabled)
Enable the collection of Facebook Deferred AppLinks
Requires Facebook SDK and Facebook app on target/client device.
|
AppsFlyerLib |
enableLocationCollection(boolean flag)
Enable the AppsFlyer SDK to collect the last known location,
Requires
Manifest.permission#ACCESS_COARSE_LOCATION
and Manifest.permission#ACCESS_FINE_LOCATION Manifest permissions. |
EventDataCollector |
eventDataCollector(android.content.Context context) |
static boolean |
firstCallSent(android.content.SharedPreferences preferences) |
java.lang.String |
getAppsFlyerUID(android.content.Context context)
Get AppsFlyer's unique device ID is created for every new install of an app.
|
java.lang.String |
getAttributionId(android.content.Context context)
Get the Facebook attribution ID, if one exists.
|
java.lang.String |
getCachedChannel(android.content.Context context,
java.lang.String currentChannel) |
java.lang.String |
getConfiguredChannel(android.content.Context context) |
java.lang.String |
getCustomerUserId() |
java.lang.String |
getHostName()
Get the host name.
|
java.lang.String |
getHostPrefix()
Get the custom set host prefix.
|
static AppsFlyerLibCore |
getInstance() |
int |
getLaunchCounter(android.content.SharedPreferences sharedPreferences,
boolean isIncrease) |
static java.util.Map<java.lang.String,java.lang.Object> |
getMetaFrom(java.util.Map<java.lang.String,java.lang.Object> params) |
java.lang.String |
getOutOfStore(android.content.Context context)
Get the current AF_STORE value.
|
java.lang.String |
getProperty(java.lang.String key) |
Referrer[] |
getReferrers() |
java.lang.String |
getSdkVersion()
Get the AppsFlyer SDK version used in app.
|
static android.content.SharedPreferences |
getSharedPreferences(android.content.Context context) |
protected void |
handleDeepLinkCallback(android.content.Context context,
java.util.Map<java.lang.String,java.lang.Object> params,
android.net.Uri uri) |
AppsFlyerLib |
init(java.lang.String key,
AppsFlyerConversionListener conversionDataListener,
android.content.Context context)
Use this method to initialize AppsFlyer SDK.
|
boolean |
isAppsFlyerFirstLaunch(android.content.Context context) |
boolean |
isPreInstalledApp(android.content.Context context)
Boolean indicator for preinstall by Manufacturer.
|
boolean |
isStopped()
Was the
AppsFlyerLib.stop(boolean, Context) API set to true. |
void |
logEvent(android.content.Context context,
java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.Object> eventValues)
Log an In-App Event.
|
void |
logEvent(android.content.Context context,
java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.Object> eventValues,
AppsFlyerRequestListener appsFlyerRequestListener)
|
void |
logLocation(android.content.Context context,
double latitude,
double longitude)
Manually log the location of the user
|
void |
logSession(android.content.Context ctx)
If your app is a utility app running in the background you can use this API in your activity’s onCreate()
|
void |
onPause(android.content.Context context)
For Cocos2dx platform only
Cocos2dx has his own applicationDidEnterBackground event.
|
void |
performOnAppAttribution(android.content.Context context,
java.net.URI link)
Deprecated.
|
void |
performOnDeepLinking(android.content.Intent intent,
android.content.Context context)
Manual way of enabling Unified Deep Linking API without calling
AppsFlyerLib.start(Context)
If DeepLinkListener is registered - supports both deferred (first launch only)
and direct deep linking
If AppsFlyerConversionListener is registered only supports direct deep linking
Recommended to call this from Activity.onResume() of every activity that can be
launched via deep link
Notes: - Duplicate calls with the same intent containing the deep link will be deduplicated - Proper deep linking intent must have ACTION_VIEW and Uri data - Direct deep links processed by this API will not be reported to the server as of SDK v6.3.2. |
java.lang.String |
readServerResponse(java.net.HttpURLConnection connection) |
void |
registerConversionListener(android.content.Context context,
AppsFlyerConversionListener conversionDataListener)
Register a Conversion Data Listener.
|
void |
registerValidatorListener(android.content.Context context,
AppsFlyerInAppPurchaseValidatorListener validationListener)
|
void |
saveBooleanToSharedPreferences(android.content.Context context,
java.lang.String key,
boolean value) |
void |
saveDataToSharedPreferences(android.content.Context context,
java.lang.String key,
java.lang.String value) |
void |
saveLongToSharedPreferences(android.content.Context context,
java.lang.String key,
long value) |
void |
scheduleJob(java.util.concurrent.ScheduledExecutorService scheduler,
java.lang.Runnable job,
long delay,
java.util.concurrent.TimeUnit timeUnits) |
void |
sendAdRevenue(android.content.Context context,
java.util.Map<java.lang.String,java.lang.Object> adRevenuePayload) |
void |
sendPushNotificationData(android.app.Activity activity)
Allows you to measure push notifications as part of a retargeting campaign.
|
void |
setAdditionalData(java.util.Map<java.lang.String,java.lang.Object> customData)
Set additional data to be sent to AppsFlyer.
|
void |
setAndroidIdData(java.lang.String aAndroidId)
By default, IMEI and Android ID are not collected by the SDK if the OS version is higher than KitKat (4.4)
and the device contains Google Play Services (on SDK versions 4.8.8 and below the specific app needed GPS).
|
void |
setAppId(java.lang.String id) |
void |
setAppInviteOneLink(java.lang.String oneLinkId)
Set the OneLink ID that should be used for User-Invite-logging
The link that is generated for the user invite will use this OneLink as the base link.
|
void |
setCollectAndroidID(boolean isCollect)
Opt-out of collection of Android ID.
|
void |
setCollectIMEI(boolean isCollect)
Opt-out of collection of IMEI.
|
void |
setCollectOaid(boolean isCollect)
Deprecated.
|
void |
setCurrencyCode(java.lang.String currencyCode)
Setting user local currency code for in-app purchases.
|
void |
setCustomerIdAndLogSession(java.lang.String id,
android.content.Context context)
Use this API to provide the SDK with the relevant customer user id and trigger the SDK to begin its normal logging.
|
void |
setCustomerUserId(java.lang.String id)
Setting your own customer ID enables you to cross-reference your own unique ID with AppsFlyer’s unique ID and the other devices’ IDs.
|
void |
setDebugLog(boolean shouldEnable)
Enables Debug logs for the AppsFlyer SDK.
|
void |
setDisableAdvertisingIdentifiers(boolean disable)
Disable collection of Google, Amazon and Open advertising ids (GAID, AAID, OAID).
|
void |
setExtension(java.lang.String extension)
SDK plugins and extensions will set this field
|
void |
setHost(java.lang.String hostPrefixName,
java.lang.String hostName)
Set a custom host.
|
void |
setImeiData(java.lang.String aImei)
By default, IMEI and Android ID are not collected by the SDK if the OS version is higher than KitKat (4.4)
and the device contains Google Play Services (on SDK versions 4.8.8 and below the specific app needed GPS).
|
void |
setIsUpdate(boolean isUpdate)
Manually set that the application was updated.
|
void |
setLogLevel(AFLogger.LogLevel logLevel)
Sets the SDK's Log Level.
|
void |
setMinTimeBetweenSessions(int seconds)
Set a custom value for the minimum required time between sessions.
|
void |
setOaidData(java.lang.String oaid)
By default, OAID is not collected by the SDK.
|
void |
setOneLinkCustomDomain(java.lang.String... domains)
In order for AppsFlyer SDK to successfully resolve hidden (decoded in shortlink ID)
attribution params any domain that is configured as
branded domain in AppsFlyer Dashboard should be provided in this API
|
void |
setOutOfStore(java.lang.String sourceName)
Manually set the AF_STORE value.
|
void |
setPartnerData(java.lang.String partnerId,
java.util.Map<java.lang.String,java.lang.Object> data)
Allows sending custom data for partner integration purposes.
|
void |
setPhoneNumber(java.lang.String phoneNumber)
Will be sent as SHA-256
|
void |
setPreinstallAttribution(java.lang.String mediaSource,
java.lang.String campaign,
java.lang.String siteId)
Specify the manufacturer or media source name to which the preinstall is attributed.
|
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setResolveDeepLinkURLs(java.lang.String... urls)
Advertisers can wrap AppsFlyer OneLink within another Universal Link.
|
void |
setSharingFilter(java.lang.String... partners)
Block an events from being shared with ad networks and other 3rd party integrations
|
void |
setSharingFilterForAllPartners()
Block an events from being shared with any partner
This setter overwrite
AppsFlyerLib.setSharingFilter(String...). |
static void |
setUrl(java.util.Map<java.lang.String,java.lang.String> mapOfURLs) |
void |
setUserEmails(AppsFlyerProperties.EmailsCryptType cryptMethod,
java.lang.String... emails)
Set the user emails and encrypt them.
|
void |
setUserEmails(java.lang.String... emails)
Set the user emails
|
void |
start(android.content.Context context) |
void |
start(android.content.Context context,
java.lang.String key) |
void |
start(android.content.Context context,
java.lang.String key,
AppsFlyerRequestListener appsFlyerRequestListener) |
void |
stop(boolean shouldStop,
android.content.Context context)
Once this API is invoked, our SDK no longer communicates with our servers and stops functioning.
|
void |
subscribeForDeepLink(DeepLinkListener deepLinkListener) |
void |
subscribeForDeepLink(DeepLinkListener deepLinkListener,
long timeout) |
void |
unregisterConversionListener()
Unregister a previously registered AppsFlyerConversionListener.
|
void |
updateServerUninstallToken(android.content.Context context,
java.lang.String token)
Manually pass the Firebase Device Token for Uninstall Measurement.
|
void |
validateAndLogInAppPurchase(android.content.Context context,
java.lang.String publicKey,
java.lang.String signature,
java.lang.String purchaseData,
java.lang.String price,
java.lang.String currency,
java.util.Map<java.lang.String,java.lang.String> additionalParameters)
API for server verification of in-app purchases.
|
void |
waitForCustomerUserId(boolean wait)
It is possible to delay the SDK Initialization until the customerUserID is set.
|
boolean |
waitingForId() |
public static final java.lang.String IS_STOP_TRACKING_USED
public static final java.lang.String PRE_INSTALL_SYSTEM_RO_PROP
public static final java.lang.String PRE_INSTALL_SYSTEM_DEFAULT
public static final java.lang.String PRE_INSTALL_SYSTEM_DEFAULT_ETC
public static final java.lang.String AF_PRE_INSTALL_PATH
public static final java.lang.String BUILD_NUMBER
public static final java.lang.String LOG_TAG
public static final java.lang.String SERVER_BUILD_NUMBER
public static final java.lang.String INSTALL_UPDATE_DATE_FORMAT
public static final java.lang.String INSTALL_REFERRER_PREF
public static final java.lang.String BUILD_URL_SUFFIX
public static java.lang.String FIRST_LAUNCHES_URL
public static java.lang.String REFERRER_TRACKING_URL
public static AppsFlyerConversionListener conversionDataListener
public static AppsFlyerLibCore instance
public java.lang.String[] sharingFilter
public EventDataCollector eventDataCollector
public static AppsFlyerLibCore getInstance()
@Deprecated
public void performOnAppAttribution(android.content.Context context,
java.net.URI link)
AppsFlyerLibperformOnAppAttribution in class AppsFlyerLibpublic void setSharingFilter(java.lang.String... partners)
AppsFlyerLibsetSharingFilter in class AppsFlyerLibpartners - must only include letters/digits and underscore, maximum length: 45public void setSharingFilterForAllPartners()
AppsFlyerLibAppsFlyerLib.setSharingFilter(String...).setSharingFilterForAllPartners in class AppsFlyerLibpublic void appendParametersToDeepLinkingURL(java.lang.String contains,
java.util.Map<java.lang.String,java.lang.String> parameters)
appendParametersToDeepLinkingURL in class AppsFlyerLibpublic void subscribeForDeepLink(DeepLinkListener deepLinkListener)
subscribeForDeepLink in class AppsFlyerLibpublic void subscribeForDeepLink(DeepLinkListener deepLinkListener, long timeout)
subscribeForDeepLink in class AppsFlyerLibpublic void performOnDeepLinking(android.content.Intent intent,
android.content.Context context)
AppsFlyerLibAppsFlyerLib.start(Context)
DeepLinkListener is registered - supports both deferred (first launch only)
and direct deep linking
AppsFlyerConversionListener is registered only supports direct deep linking
Activity.onResume() of every activity that can be
launched via deep link
performOnDeepLinking in class AppsFlyerLibpublic void addPushNotificationDeepLinkPath(java.lang.String... deepLinkPath)
AppsFlyerLibSpecify path to deeplink url in the data part of the push notification payload in order to get them resolved to 1 of the the callbacks when app is opened by a click on a notification:
DeepLinkListener.onDeepLinking(DeepLinkResult)AppsFlyerConversionListener.onAppOpenAttribution(Map)addPushNotificationDeepLinkPath in class AppsFlyerLibdeepLinkPath - List of path elements in correct orderpublic void setPartnerData(java.lang.String partnerId,
java.util.Map<java.lang.String,java.lang.Object> data)
AppsFlyerLibsetPartnerData in class AppsFlyerLibpartnerId - ID of the partner (usually has "_int" suffix)data - customer data, depends on the integration nature with specific partnerpublic void setDisableAdvertisingIdentifiers(boolean disable)
AppsFlyerLibsetDisableAdvertisingIdentifiers in class AppsFlyerLibpublic void stop(boolean shouldStop,
android.content.Context context)
AppsFlyerLibstop in class AppsFlyerLibshouldStop - should logging be stopped.context - Application / Activity context.public java.lang.String getSdkVersion()
AppsFlyerLibgetSdkVersion in class AppsFlyerLibpublic void onPause(android.content.Context context)
AppsFlyerLibonPause in class AppsFlyerLibpublic void updateServerUninstallToken(android.content.Context context,
java.lang.String token)
AppsFlyerLibupdateServerUninstallToken in class AppsFlyerLibcontext - Application / Activity context.token - Firebase Device Token.public void setDebugLog(boolean shouldEnable)
AppsFlyerLibsetDebugLog in class AppsFlyerLibshouldEnable - boolean.public void setImeiData(java.lang.String aImei)
AppsFlyerLibsetImeiData in class AppsFlyerLibaImei - device's IMEI.public void setOaidData(java.lang.String oaid)
AppsFlyerLibsetOaidData in class AppsFlyerLiboaid - device's OAID.public void setAndroidIdData(java.lang.String aAndroidId)
AppsFlyerLibsetAndroidIdData in class AppsFlyerLibaAndroidId - device's Android ID.public AppsFlyerLib enableLocationCollection(boolean flag)
AppsFlyerLibManifest.permission#ACCESS_COARSE_LOCATION
and Manifest.permission#ACCESS_FINE_LOCATION Manifest permissions.enableLocationCollection in class AppsFlyerLibflag - boolean.public void saveDataToSharedPreferences(android.content.Context context,
java.lang.String key,
java.lang.String value)
public void saveBooleanToSharedPreferences(android.content.Context context,
java.lang.String key,
boolean value)
public void saveLongToSharedPreferences(android.content.Context context,
java.lang.String key,
long value)
public void setProperty(java.lang.String key,
java.lang.String value)
public java.lang.String getProperty(java.lang.String key)
public boolean waitingForId()
public void waitForCustomerUserId(boolean wait)
AppsFlyerLibwaitForCustomerUserId in class AppsFlyerLibwait - boolean.public void setCustomerIdAndLogSession(java.lang.String id,
android.content.Context context)
AppsFlyerLibsetCustomerIdAndLogSession in class AppsFlyerLibid - Customer ID for client.context - Application / Activity context.public java.lang.String getOutOfStore(android.content.Context context)
AppsFlyerLibgetOutOfStore in class AppsFlyerLibcontext - Application / Activity context.public void setOutOfStore(java.lang.String sourceName)
AppsFlyerLibsetOutOfStore in class AppsFlyerLibsourceName - value to be set.public void setAppInviteOneLink(java.lang.String oneLinkId)
AppsFlyerLibsetAppInviteOneLink in class AppsFlyerLiboneLinkId - OneLink ID obtained from the AppsFlyer Dashboard.public void setAdditionalData(java.util.Map<java.lang.String,java.lang.Object> customData)
AppsFlyerLibsetAdditionalData in class AppsFlyerLibcustomData - additional data HashMap.public void sendPushNotificationData(android.app.Activity activity)
AppsFlyerLibActivity.onResume() method of every Activity which will be launched upon clicking the notification.sendPushNotificationData in class AppsFlyerLibactivity - The Activity which will be launched upon clicking the notification.public void setUserEmails(java.lang.String... emails)
AppsFlyerLibsetUserEmails in class AppsFlyerLibemails - User emails.public void setUserEmails(AppsFlyerProperties.EmailsCryptType cryptMethod, java.lang.String... emails)
AppsFlyerLibsetUserEmails in class AppsFlyerLibcryptMethod - Encryption method:
AppsFlyerProperties.EmailsCryptType.NONE,
AppsFlyerProperties.EmailsCryptType.SHA1,
AppsFlyerProperties.EmailsCryptType.MD5,
AppsFlyerProperties.EmailsCryptType.SHA256emails - User emails.public void setCollectAndroidID(boolean isCollect)
AppsFlyerLibsetCollectAndroidID in class AppsFlyerLibisCollect - boolean, false to opt-out.public void setCollectIMEI(boolean isCollect)
AppsFlyerLibsetCollectIMEI in class AppsFlyerLibisCollect - boolean, false to opt-out.@Deprecated public void setCollectOaid(boolean isCollect)
setCollectOaid in class AppsFlyerLibpublic void setResolveDeepLinkURLs(java.lang.String... urls)
AppsFlyerLib
setResolveDeepLinkURLs API allows to Appsflyer SDK to resolve
provided urls, to be able to deep link from a OneLink
wrapped within another Universal Link and also log this retargeting
conversion.
For example:
"example.com""example.com/param1""example.com/param1/param2"
Note, if "example.com" is provided, the App link "my.example.com" will not match because of prefix "my."
Be sure to provide explicit url names
setResolveDeepLinkURLs in class AppsFlyerLiburls - - Array of urlspublic void setOneLinkCustomDomain(java.lang.String... domains)
AppsFlyerLibsetOneLinkCustomDomain in class AppsFlyerLibdomains - Array of domains that should be treated by SDK as branded (SDK will try to
resolve them as Onelinks)public AppsFlyerLib init(java.lang.String key, AppsFlyerConversionListener conversionDataListener, android.content.Context context)
AppsFlyerLibinit in class AppsFlyerLibkey - AppsFlyer's Dev-Key, which is accessible from your AppsFlyer
account, under 'App Settings' in the dashboard.conversionDataListener - (Optional) implement the ConversionDataListener to
access AppsFlyer's conversion data. Can be null.context - to handle new install referrerpublic EventDataCollector eventDataCollector(android.content.Context context)
public void enableFacebookDeferredApplinks(boolean isEnabled)
AppsFlyerLibenableFacebookDeferredApplinks in class AppsFlyerLibisEnabled - should Facebook's deferred app links be processed by the AppsFlyer SDK.public void start(android.content.Context context)
start in class AppsFlyerLibAppsFlyerLib.start(Context, String, AppsFlyerRequestListener)public void start(android.content.Context context,
java.lang.String key)
start in class AppsFlyerLibAppsFlyerLib.start(Context, String, AppsFlyerRequestListener)public void start(android.content.Context context,
java.lang.String key,
AppsFlyerRequestListener appsFlyerRequestListener)
start in class AppsFlyerLibcontext - Application if calling in Application.onCreate() or
Activity if calling after Activity.onResume()key - AppsFlyer's Dev-Key, which is accessible from your AppsFlyer account, under
'App Settings' in the dashboardappsFlyerRequestListener - An optional listener for getting the request status - A 200 OK response from
server will invoke the
AppsFlyerRequestListener.onSuccess(),
AppsFlyerRequestListener.onError(int, String)
will return the error in case one occurspublic java.lang.String getCustomerUserId()
public void setCustomerUserId(java.lang.String id)
AppsFlyerLibsetCustomerUserId in class AppsFlyerLibid - Customer ID for client.public void setPhoneNumber(java.lang.String phoneNumber)
AppsFlyerLibsetPhoneNumber in class AppsFlyerLibpublic void setAppId(java.lang.String id)
setAppId in class AppsFlyerLibpublic void setExtension(java.lang.String extension)
AppsFlyerLibsetExtension in class AppsFlyerLibpublic void setIsUpdate(boolean isUpdate)
AppsFlyerLibsetIsUpdate in class AppsFlyerLibisUpdate - boolean valuepublic void setCurrencyCode(java.lang.String currencyCode)
AppsFlyerLibsetCurrencyCode in class AppsFlyerLibcurrencyCode - 3 character ISO 4217 codepublic void logLocation(android.content.Context context,
double latitude,
double longitude)
AppsFlyerLiblogLocation in class AppsFlyerLibcontext - Application / Activity contextlatitude - latitude as doublelongitude - longitude as doublepublic void logSession(android.content.Context ctx)
AppsFlyerLiblogSession in class AppsFlyerLibctx - Application / Activity contextpublic void logEvent(android.content.Context context,
java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.Object> eventValues,
AppsFlyerRequestListener appsFlyerRequestListener)
AppsFlyerLibAppsFlyerLib.logEvent(Context, String, Map) with
AppsFlyerRequestListener. HttpURLConnection.HTTP_OK from
server will invoke the AppsFlyerRequestListener.onSuccess()
method. AppsFlyerRequestListener.onError(int, String) will return
the error in case one occurslogEvent in class AppsFlyerLibpublic void sendAdRevenue(android.content.Context context,
java.util.Map<java.lang.String,java.lang.Object> adRevenuePayload)
sendAdRevenue in class AppsFlyerLibpublic void logEvent(android.content.Context context,
java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.Object> eventValues)
AppsFlyerLiblogEvent in class AppsFlyerLibcontext - Application / Activity contexteventName - Event Name as StringeventValues - Event Values as Mappublic void anonymizeUser(boolean shouldAnonymize)
AppsFlyerLibanonymizeUser in class AppsFlyerLibshouldAnonymize - booleanpublic void registerConversionListener(android.content.Context context,
AppsFlyerConversionListener conversionDataListener)
AppsFlyerLibregisterConversionListener in class AppsFlyerLibcontext - Application / Activity contextconversionDataListener - AppsFlyerConversionListener interface with
onConversionDataSuccess and onAppOpenAttribution callback methods.public void unregisterConversionListener()
AppsFlyerLibunregisterConversionListener in class AppsFlyerLibpublic void registerValidatorListener(android.content.Context context,
AppsFlyerInAppPurchaseValidatorListener validationListener)
AppsFlyerLibAppsFlyerLib.validateAndLogInAppPurchase(android.content.Context, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>) API.registerValidatorListener in class AppsFlyerLibcontext - Application / Activity context.validationListener - AppsFlyerInAppPurchaseValidatorListener interface with \
onValidateInApp and onValidateInAppFailure callback methodspublic java.lang.String dateFormatUTC(java.text.SimpleDateFormat dateFormat,
long time)
public static java.util.Map<java.lang.String,java.lang.Object> getMetaFrom(java.util.Map<java.lang.String,java.lang.Object> params)
public static boolean firstCallSent(android.content.SharedPreferences preferences)
public void addNetworkData(android.content.Context context,
java.util.Map<java.lang.String,? super java.lang.String> registerParams)
protected void handleDeepLinkCallback(android.content.Context context,
java.util.Map<java.lang.String,java.lang.Object> params,
android.net.Uri uri)
public boolean isAppsFlyerFirstLaunch(android.content.Context context)
public void setPreinstallAttribution(java.lang.String mediaSource,
java.lang.String campaign,
java.lang.String siteId)
AppsFlyerLibsetPreinstallAttribution in class AppsFlyerLibmediaSource - Manufacturer or media source name for preinstall attribution.campaign - Campaign name for preinstall attribution.siteId - Site ID for preinstall attribution.public java.lang.String getConfiguredChannel(android.content.Context context)
public boolean isPreInstalledApp(android.content.Context context)
AppsFlyerLibisPreInstalledApp in class AppsFlyerLibcontext - Application / Activity context.public java.lang.String getCachedChannel(android.content.Context context,
java.lang.String currentChannel)
public java.lang.String getAttributionId(android.content.Context context)
AppsFlyerLibgetAttributionId in class AppsFlyerLibpublic static android.content.SharedPreferences getSharedPreferences(android.content.Context context)
public final int getLaunchCounter(android.content.SharedPreferences sharedPreferences,
boolean isIncrease)
public java.lang.String getAppsFlyerUID(android.content.Context context)
AppsFlyerLibgetAppsFlyerUID in class AppsFlyerLibcontext - Application / Activity context.public void validateAndLogInAppPurchase(android.content.Context context,
java.lang.String publicKey,
java.lang.String signature,
java.lang.String purchaseData,
java.lang.String price,
java.lang.String currency,
java.util.Map<java.lang.String,java.lang.String> additionalParameters)
AppsFlyerLibvalidateAndLogInAppPurchase in class AppsFlyerLibcontext - Application / Activity context.publicKey - License Key obtained from the Google Play Console.signature - data.INAPP_DATA_SIGNATURE from onActivityResult(int requestCode, int resultCode, Intent data)purchaseData - data.INAPP_PURCHASE_DATA from onActivityResult(int requestCode, int resultCode, Intent data)price - Purchase price, should be derived from skuDetails.getStringArrayList("DETAILS_LIST")currency - Purchase currency, should be derived from skuDetails.getStringArrayList("DETAILS_LIST")additionalParameters - Freehand parameters to be logged with the purchase (if validated).public void scheduleJob(java.util.concurrent.ScheduledExecutorService scheduler,
java.lang.Runnable job,
long delay,
java.util.concurrent.TimeUnit timeUnits)
public boolean isStopped()
AppsFlyerLibAppsFlyerLib.stop(boolean, Context) API set to true.isStopped in class AppsFlyerLibpublic java.lang.String readServerResponse(java.net.HttpURLConnection connection)
public void setLogLevel(AFLogger.LogLevel logLevel)
AppsFlyerLibsetLogLevel in class AppsFlyerLiblogLevel - logLevel as String:
AFLogger.LogLevel.NONE,
AFLogger.LogLevel.ERROR,
AFLogger.LogLevel.WARNING,
AFLogger.LogLevel.INFO,
AFLogger.LogLevel.DEBUG,
AFLogger.LogLevel.VERBOSE.public void setHost(java.lang.String hostPrefixName,
java.lang.String hostName)
AppsFlyerLibsetHost in class AppsFlyerLibhostPrefixName - Host prefix.hostName - Host name.public java.lang.String getHostName()
AppsFlyerLibgetHostName in class AppsFlyerLibpublic java.lang.String getHostPrefix()
AppsFlyerLibgetHostPrefix in class AppsFlyerLibpublic void setMinTimeBetweenSessions(int seconds)
AppsFlyerLibsetMinTimeBetweenSessions in class AppsFlyerLibseconds - minimum time between 2 separate sessions in seconds.public Referrer[] getReferrers()
public static void setUrl(java.util.Map<java.lang.String,java.lang.String> mapOfURLs)