-
public class BaseDeepLinkDelegate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBaseDeepLinkDelegate.DeeplLinkMethodErrorpublic classBaseDeepLinkDelegate.Companion
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>allDeepLinkEntriesprivate final Map<DeepLinkEntry, List<DeepLinkEntry>>duplicatedDeepLinkEntriesprivate final List<BaseRegistry>registries
-
Constructor Summary
Constructors Constructor Description 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(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters, ErrorHandler errorHandler, Function3<DeepLinkUri, Type, String, Integer> typeConversionErrorNullable)BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters, ErrorHandler errorHandler)BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements, Function0<TypeConverters> typeConverters)BaseDeepLinkDelegate(List<BaseRegistry> registries, Map<String, String> configurablePathSegmentReplacements)BaseDeepLinkDelegate(List<BaseRegistry> registries)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getAllDeepLinkEntries()Get all DeepLinkEntry objects that are handled by all registries handled by this DeepLinkDelegate. 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. final List<BaseRegistry>getRegistries()final DeepLinkResultdispatchFrom(Activity activity, Intent sourceIntent)Calls . final DeepLinkResultdispatchFrom(Activity activity)Calls . final DeepLinkResultcreateResult(Activity activity, Intent sourceIntent, DeepLinkMatchResult deeplinkMatchResult)Create a DeepLinkResult, whether we are able to match the uri on {@param sourceIntent} or not. final DeepLinkMatchResultfindEntry(String uriString)Returns a raw match result for the given uriString. final BooleansupportsUri(String uriString)-
-
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.
-
getRegistries
final List<BaseRegistry> getRegistries()
-
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
-
supportsUri
final Boolean supportsUri(String uriString)
-
-
-
-