SetupNavHost
fun SetupNavHost(navHostController: StateFlow<NavHostController?>, rootView: @Composable () -> Unit = { Spacer(modifier = Modifier.fillMaxWidth()) }, builder: RouteContentBuilder)
Creates a a NavHost for a given NavHostController flow
Parameters
navHostController
A StateFlow of NavHostController to be managed by the NavHost
rootView
The Composable view to display as the root of the NavHost
builder
The RouteContentBuilder for building the content of the NavHost
fun SetupNavHost(bottomSheetNavigatorState: StateFlow<BottomSheetNavigatorState?>, navHostController: BottomSheetNavigatorState.() -> NavHostController, rootView: @Composable () -> Unit = { Spacer(modifier = Modifier.fillMaxWidth()) }, builder: BottomSheetContentBuilder)
Creates a a NavHost for a given BottomSheetNavigatorState flow
Parameters
bottomSheetNavigatorState
A StateFlow of BottomSheetNavigatorState to be managed by the NavHost
navHostController
Converts a BottomSheetNavigatorState into a NavHostController
rootView
The Composable view to display as the root of the NavHost
builder
The RouteContentBuilder for building the content of the NavHost
fun SetupNavHost(navHostController: NavHostController, startDestination: String, builder: NavGraphBuilder.() -> Unit)
Creates a a NavHost for a given NavHostController
Parameters
navHostController
The NavHostController tp be managed by the NavHost
startDestination
The start destination of the NavHost
builder
The RouteContentBuilder for building the content of the NavHost