-
public final class NavGraphBuilderKt
-
-
Method Summary
Modifier and Type Method Description final static Unitcomposable(NavGraphBuilder $self, String route, List<NamedNavArgument> arguments, List<NavDeepLink> deepLinks, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function2<AnimatedVisibilityScope, NavBackStackEntry, Unit> content)Add the Composable to the NavGraphBuilder final static Unitnavigation(NavGraphBuilder $self, String startDestination, String route, List<NamedNavArgument> arguments, List<NavDeepLink> deepLinks, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function1<NavGraphBuilder, Unit> builder)Construct a nested NavGraph -
-
Method Detail
-
composable
@Deprecated(message = Migrate to Androidx navigation-compose NavGraphBuilder.composable with the same parameters. To migrate, change import from com.google.accompanist.navigation.animation.composable to androidx.navigation.compose.composable.) final static Unit composable(NavGraphBuilder $self, String route, List<NamedNavArgument> arguments, List<NavDeepLink> deepLinks, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function2<AnimatedVisibilityScope, NavBackStackEntry, Unit> content)
Add the Composable to the NavGraphBuilder
- Parameters:
route- route for the destinationarguments- list of arguments to associate with destinationdeepLinks- list of deep links to associate with the destinationsenterTransition- callback to determine the destination's enter transitionexitTransition- callback to determine the destination's exit transitionpopEnterTransition- callback to determine the destination's popEnter transitionpopExitTransition- callback to determine the destination's popExit transitioncontent- composable for the destination
-
navigation
@Deprecated(message = Migrate to Androidx navigation-compose NavGraphBuilder.navigation with the same parameters. To migrate, change import from com.google.accompanist.navigation.animation.navigation to androidx.navigation.compose.navigation.) final static Unit navigation(NavGraphBuilder $self, String startDestination, String route, List<NamedNavArgument> arguments, List<NavDeepLink> deepLinks, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function1<NavGraphBuilder, Unit> builder)
Construct a nested NavGraph
- Parameters:
startDestination- the starting destination's route for this NavGraphroute- the destination's unique routearguments- list of arguments to associate with destinationdeepLinks- list of deep links to associate with the destinationsenterTransition- callback to define enter transitions for destination in this NavGraphexitTransition- callback to define exit transitions for destination in this NavGraphpopEnterTransition- callback to define pop enter transitions for destination in this NavGraphpopExitTransition- callback to define pop exit transitions for destination in this NavGraphbuilder- the builder used to construct the graph
-
-
-
-