RootNavHostComposableNavigator

class RootNavHostComposableNavigator<Action : NavigationAction<*>>(navigationMapper: @Composable (Action) -> ComposableNavSpec, parentRouteController: RouteController? = null, rootResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), contentBuilder: RouteContentBuilder) : ComposableNavigator<Action>

A ComposableNavigator that creates and manages a NavHost. This should be on top of any NavHostComposableNavigator in the View-hierarchy

Parameters

Action

the type of NavigationAction this navigator should respond to.

navigationMapper

Maps Action to a ComposableNavSpec to be navigated to.

parentRouteController

A RouteController managing the parent layout of the NavHost.

rootResultHandlers

A list of NavHostResultHandler to be added to the root view.

contentBuilder

The RouteContentBuilder describing the navigation graph

Constructors

Link copied to clipboard
constructor(navigationMapper: @Composable (Action) -> ComposableNavSpec, parentRouteController: RouteController? = null, rootResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), contentBuilder: RouteContentBuilder)

Properties

Link copied to clipboard

This Composable modifier method transforms the View Builder associated with a BaseLifecycleViewModel to wrap the functionality of the subscribable.

Functions

Link copied to clipboard
open override fun navigate(action: Action)