Bottom Sheet Navigator
class BottomSheetNavigator(sheetState: ModalBottomSheetState) : Navigator<BottomSheetNavigator.Destination>
Content copied to clipboard
Navigator that drives a ModalBottomSheetState for use of ModalBottomSheetLayouts with the navigation library. Every destination using this Navigator must set a valid Composable by setting it directly on an instantiated Destination or calling androidx.navigation.compose.material.bottomSheet.
The sheetContent will always host the latest entry of the back stack. When navigating from a BottomSheetNavigator.Destination to another BottomSheetNavigator.Destination, the content of the sheet will be replaced instead of a new bottom sheet being shown.
When the sheet is dismissed by the user, the state's NavigatorState.backStack will be popped.
Parameters
sheetState
The ModalBottomSheetState that the BottomSheetNavigator will use to drive the sheet state
Constructors
BottomSheetNavigator
Link copied to clipboard
The ModalBottomSheetState that the BottomSheetNavigator will use to drive the sheet state
Types
Destination
Link copied to clipboard
class Destination(navigator: BottomSheetNavigator, content: @Composable() ColumnScope.(NavBackStackEntry) -> Unit) : NavDestination, FloatingWindow
Content copied to clipboard
Functions
createDestination
Link copied to clipboard
navigate
Link copied to clipboard
open override fun navigate(entries: List<NavBackStackEntry>, navOptions: NavOptions?, navigatorExtras: Navigator.Extras?)
Content copied to clipboard
open fun navigate(destination: BottomSheetNavigator.Destination, args: Bundle?, navOptions: NavOptions?, navigatorExtras: Navigator.Extras?): NavDestination?
Content copied to clipboard
onAttach
Link copied to clipboard
onLaunchSingleTop
Link copied to clipboard
onRestoreState
Link copied to clipboard
onSaveState
Link copied to clipboard
popBackStack
Link copied to clipboard
open override fun popBackStack(popUpTo: NavBackStackEntry, savedState: Boolean)
Content copied to clipboard
Properties
isAttached
Link copied to clipboard
navigatorSheetState
Link copied to clipboard
sheetContent
Link copied to clipboard