Package 

Class AppOpenReferrerManagerImpl

    • Method Summary

      Modifier and Type Method Description
      String getWebReferrer(Activity activity) The format of the web referrer is not guaranteed to start with "http://" or "https://".
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppOpenReferrerManagerImpl

        AppOpenReferrerManagerImpl()
    • 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.