-
public final class NavGraphBuilderDestinationExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> UnitbottomSheetComposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, Function1<BottomSheetNavGraphBuilderDestinationScope<T>, Unit> content)Like com.google.accompanist.navigation.material. -
-
Method Detail
-
bottomSheetComposable
final static <T extends Any> Unit bottomSheetComposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, Function1<BottomSheetNavGraphBuilderDestinationScope<T>, Unit> content)
Like com.google.accompanist.navigation.material.bottomSheet but accepts a DestinationSpec to get the route, arguments and deep links.
The content lambda will receive the navigation arguments class (T).
Useful if you opt to use com.google.accompanist.navigation.animation.AnimatedNavHost instead of com.ramcosta.composedestinations.DestinationsNavHost. This way, you can build the navigation graph in the "vanilla compose navigation" way. If you do this, you should also disable the
NavGraphsgeneration in build.gradle:ksp { arg("compose-destinations.generateNavGraphs", "false") }
-
-
-
-