handleDeepLink

fun HostNavigator.handleDeepLink(intent: Intent, destinations: ImmutableSet<NavDestination<*>>, deepLinkHandlers: ImmutableSet<DeepLinkHandler>, deepLinkPrefixes: ImmutableSet<DeepLinkHandler.Prefix>): Boolean

If the given Intent was created from a DeepLink or the Uri returned by Intent.getData can be handled using deepLinkHandlers and deepLinkPrefixes then the navigator will clear the current back stack and navigate to the required destinations.

Returns true if the Intent contained a deeplink that was handled.


fun HostNavigator.handleDeepLink(launchInfo: LaunchInfo, deepLinkHandlers: ImmutableSet<DeepLinkHandler>, deepLinkPrefixes: ImmutableSet<DeepLinkHandler.Prefix>): Boolean

If the given launchInfo can be handled using deepLinkHandlers and deepLinkPrefixes then the navigator will clear the current back stack and navigate to the required destinations.

Returns true if the launchInfo contained a deeplink that was handled.