Class DeeplinkHelper


  • public class DeeplinkHelper
    extends java.lang.Object
    Simple helper for deeplinking related methods
    • Constructor Summary

      Constructors 
      Constructor Description
      DeeplinkHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static android.content.Intent getFallbackIntent​(android.content.Context context)
      Get the fallback intent for the current package.
      static android.content.Intent getIntent​(java.lang.String rawDeeplink, boolean useCustomTabIfPossible, boolean useNewTask)
      Get the intent to open for a specified deeplink
      • Methods inherited from class java.lang.Object

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

      • DeeplinkHelper

        public DeeplinkHelper()
    • Method Detail

      • getIntent

        @Nullable
        public static android.content.Intent getIntent​(@NonNull
                                                       java.lang.String rawDeeplink,
                                                       boolean useCustomTabIfPossible,
                                                       boolean useNewTask)
        Get the intent to open for a specified deeplink

        Can throw runtime exceptions

        Parameters:
        rawDeeplink - Raw deeplink to open
        useCustomTabIfPossible - Use a custom tab if supported
        useNewTask - Open in a new task (unsupported on custom tabs)
        Returns:
        Intent to attempt to open for the deeplink
      • getFallbackIntent

        public static android.content.Intent getFallbackIntent​(android.content.Context context)
        Get the fallback intent for the current package.
        Parameters:
        context -
        Returns: