NavHost

fun NavHost(startRoute: NavRoot, destinations: ImmutableSet<NavDestination>, modifier: Modifier = Modifier, navEventNavigator: NavEventNavigator? = null, destinationChangedCallback: (BaseRoute) -> Unit? = null, transitionAnimations: NavHostTransitionAnimations = NavHostDefaults.transitionAnimations(), stackValidationMode: StackValidationMode = NavHostDefaults.stackValidationMode())(source)

Create a new NavHost containing all given destinations. startRoute will be used as the start destination of the graph. Use com.hoc081098.solivagant.navigation.NavEventNavigator and NavigationSetup to change what is shown in NavHost.

If a NavEventNavigator is passed it will be automatically set up and can be used to navigate within the NavHost.