-
public interface NavHostEngineAbstraction over all needed functionality to call a "NavHost-like" composable and add the nested navigation graphs and the composables. Also has a way to get the best suited NavHostController.
This is passed in to the com.ramcosta.composedestinations.DestinationsNavHost call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumNavHostEngine.Type
-
Method Summary
Modifier and Type Method Description abstract NavHostControllerrememberNavController(Navigator<out NavDestination> navigators)Returns the NavHostController best suited for this NavHostEngine abstract UnitNavHost(Modifier modifier, String route, Direction start, NavHostAnimatedDestinationStyle defaultTransitions, NavHostController navController, Function1<NavGraphBuilder, Unit> builder)"NavHost-like" Composable for this engine. abstract Unitnavigation(NavGraphBuilder $self, TypedNavGraphSpec<?, ?> navGraph, ManualComposableCalls manualComposableCalls, Function1<NavGraphBuilder, Unit> builder)Creates a new navigation graph nested in the NavGraphBuilder graph. abstract <T extends Any> Unitcomposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, NavHostController navController, Function1<DependenciesContainerBuilder<?>, Unit> dependenciesContainerBuilder, ManualComposableCalls manualComposableCalls)Adds a specific DestinationSpec to this NavGraphBuilder abstract NavHostEngine.TypegetType()Engine type between Type.DEFAULT or Type.WEAR -
-
Method Detail
-
rememberNavController
@Composable() abstract NavHostController rememberNavController(Navigator<out NavDestination> navigators)
Returns the NavHostController best suited for this NavHostEngine
-
NavHost
@Composable() abstract Unit NavHost(Modifier modifier, String route, Direction start, NavHostAnimatedDestinationStyle defaultTransitions, NavHostController navController, Function1<NavGraphBuilder, Unit> builder)
"NavHost-like" Composable for this engine.
-
navigation
abstract Unit navigation(NavGraphBuilder $self, TypedNavGraphSpec<?, ?> navGraph, ManualComposableCalls manualComposableCalls, Function1<NavGraphBuilder, Unit> builder)
Creates a new navigation graph nested in the NavGraphBuilder graph.
-
composable
abstract <T extends Any> Unit composable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, NavHostController navController, Function1<DependenciesContainerBuilder<?>, Unit> dependenciesContainerBuilder, ManualComposableCalls manualComposableCalls)
Adds a specific DestinationSpec to this NavGraphBuilder
-
getType
abstract NavHostEngine.Type getType()
Engine type between Type.DEFAULT or Type.WEAR
-
-
-
-