rememberHostNavigator

@Composable
fun rememberHostNavigator(startRoot: NavRoot, destinations: ImmutableSet<NavDestination<*>>, deepLinkHandlers: ImmutableSet<DeepLinkHandler> = persistentSetOf(), deepLinkPrefixes: ImmutableSet<DeepLinkHandler.Prefix> = persistentSetOf()): HostNavigator

Returns an instance of HostNavigator with the given destinations and startRoot as initially shown destination.

To support deep links a set of DeepLinkHandlers can be passed in optionally. These will be used to build the correct back stack when the current Activity was launched with an ACTION_VIEW Intent that contains an url in it's data. deepLinkPrefixes can be used to provide a default set of url patterns that should be matched by any DeepLinkHandler that doesn't provide its own DeepLinkHandler.prefixes.