ModalBottomSheetNavigator

class ModalBottomSheetNavigator<Action : NavigationAction<*>>(bottomSheetNavigatorState: StateFlow<BottomSheetNavigatorState?>, contentResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), sheetContentResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), navigationMapper: @Composable (Action) -> BottomSheetComposableNavSpec) : BottomSheetNavigator<Action>

A BottomSheetNavigator that is managed by a ModalBottomSheetLayout. Must have a ModalBottomSheetLayout set up higher in the View-hierarchy.

Parameters

Action

the type of NavigationAction this navigator should respond to.

bottomSheetNavigatorState

The BottomSheetNavigatorState controlling the routes.

contentResultHandlers

A list of NavHostResultHandler to be added to the content of this navigator.

sheetContentResultHandlers

A list of NavHostResultHandler to be added to the sheet content of this navigator.

navigationMapper

Maps Action to a BottomSheetComposableNavSpec to be navigated to.

Constructors

Link copied to clipboard
constructor(bottomSheetNavigatorState: StateFlow<BottomSheetNavigatorState?>, contentResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), sheetContentResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), navigationMapper: @Composable (Action) -> BottomSheetComposableNavSpec)

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)