NavHostComposableNavigator
class NavHostComposableNavigator<Action : NavigationAction<*>>(navHostController: StateFlow<NavHostController?>, resultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), parentRouteController: RouteController? = null, navigationMapper: @Composable (Action) -> ComposableNavSpec) : ProvidingNavHostComposableNavigator<Action, NavHostController>
A ProvidingNavHostComposableNavigator that navigates for a flow of NavHostController
Parameters
Action
the type of NavigationAction this navigator should respond to.
navHostController
The StateFlow of NavHostController to manage this navigator
resultHandlers
The NavHostResultHandler to add to this navigator.
parentRouteController
An optional parent RouteController managing the navigation of a view higher in the hierarchy.
navigationMapper
Maps Action to a ComposableNavSpec to be navigated to.
Constructors
Link copied to clipboard
constructor(navHostController: StateFlow<NavHostController?>, resultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), parentRouteController: RouteController? = null, navigationMapper: @Composable (Action) -> ComposableNavSpec)
Properties
Link copied to clipboard
override val modifier: @Composable BaseLifecycleViewModel.(@Composable BaseLifecycleViewModel.() -> Unit) -> Unit
This Composable modifier method transforms the View Builder associated with a BaseLifecycleViewModel to wrap the functionality of the subscribable.