Package 

Class BaseDeepLinkDelegate

    • Constructor Detail

      • BaseDeepLinkDelegate

        BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters, ErrorHandler errorHandler, Function3<DeepLinkUri, Type, String, Integer> typeConversionErrorNullable, Function3<DeepLinkUri, Type, String, Integer> typeConversionErrorNonNullable)
      • BaseDeepLinkDelegate

        BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters, ErrorHandler errorHandler, Function3<DeepLinkUri, Type, String, Integer> typeConversionErrorNullable)
      • BaseDeepLinkDelegate

        BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters, ErrorHandler errorHandler)
      • BaseDeepLinkDelegate

        BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters)
      • BaseDeepLinkDelegate

        BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements)
      • BaseDeepLinkDelegate

        BaseDeepLinkDelegate(List<BaseRegistry> registries)
    • Method Detail

      • getAllDeepLinkEntries

         final <ERROR CLASS> getAllDeepLinkEntries()

        Get all DeepLinkEntry objects that are handled by all registries handled by this DeepLinkDelegate.

      • getDuplicatedDeepLinkEntries

         final Map<DeepLinkEntry, List<DeepLinkEntry>> getDuplicatedDeepLinkEntries()

        Get a map of all DeepLinkEntries and its duplicates, DeepLinkEntry objects that might be slightly different but will map to the same URL during app operation.

      • dispatchFrom

         final DeepLinkResult dispatchFrom(Activity activity, Intent sourceIntent)

        Calls .createResult. If the DeepLinkResult has a non-null TaskStackBuilder or Intent, it starts it. It always calls .notifyListener.

        Parameters:
        activity - used to startActivity() or notifyListener().
        sourceIntent - inbound Intent.
      • dispatchFrom

         final DeepLinkResult dispatchFrom(Activity activity)

        Calls .createResult. If the DeepLinkResult has a non-null TaskStackBuilder or Intent, it starts it. It always calls .notifyListener.

        Parameters:
        activity - used to startActivity() or notifyListener().
      • createResult

         final DeepLinkResult createResult(Activity activity, Intent sourceIntent, DeepLinkMatchResult deeplinkMatchResult)

        Create a DeepLinkResult, whether we are able to match the uri on {@param sourceIntent} or not.

        Parameters:
        activity - used to startActivity() or notifyListener().
        sourceIntent - inbound Intent.
        deeplinkMatchResult - deeplinkMatchResult that matches the sourceIntent's URI.
      • findEntry

         final DeepLinkMatchResult findEntry(String uriString)

        Returns a raw match result for the given uriString. This is null if no match is found. There is no general use for that during normal operation but it might be useful when writing tests.

        Parameters:
        uriString - Uri to be matched