-
- All Implemented Interfaces:
-
com.appsflyer.internal.open_referrer.AppOpenReferrerManager
public final class AppOpenReferrerManagerImpl implements AppOpenReferrerManager
-
-
Constructor Summary
Constructors Constructor Description AppOpenReferrerManagerImpl()
-
Method Summary
Modifier and Type Method Description StringgetWebReferrer(Activity activity)The format of the web referrer is not guaranteed to start with "http://" or "https://". StringgetAppReferrer(Activity activity)Returns a non-empty value if the app has any open referrer, whether it is a web referrer or an app referrer. -
-
Method Detail
-
getWebReferrer
String getWebReferrer(Activity activity)
The format of the web referrer is not guaranteed to start with "http://" or "https://". However, the format of the app referrer is guaranteed to start with "android-app://". This method filters out cases with "android-app://" as the referrer, considering them as app referrers, while treating everything else as web referrers.
-
getAppReferrer
String getAppReferrer(Activity activity)
Returns a non-empty value if the app has any open referrer, whether it is a web referrer or an app referrer. For a web referrer, the returned value could be something like "https://www.bing.com/". For an app referrer, the returned value could be something like "android-app://com.android.vending". If the app does not have any open referrer, the method returns an empty value.
-
-
-
-