RootModalBottomSheetNavigator

class RootModalBottomSheetNavigator<Action : NavigationAction<*>>(navigationMapper: @Composable (Action) -> BottomSheetComposableNavSpec, initialSheetValue: ModalBottomSheetValue = ModalBottomSheetValue.Hidden, parentRouteController: RouteController? = null, contentRootResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), contentBuilder: BottomSheetContentBuilder, sheetContentBuilder: BottomSheetContentBuilder) : BottomSheetNavigator<Action>

A BottomSheetNavigator that creates and manages a ModalBottomSheetLayout. This should be on top of any ModalBottomSheetNavigator in the View-hierarchy

Parameters

Action

the type of NavigationAction this navigator should respond to.

navigationMapper

Maps Action to a BottomSheetComposableNavSpec to be navigated to.

initialSheetValue
parentRouteController

A RouteController managing the parent view of the ModalBottomSheetLayout

contentRootResultHandlers

A list of NavHostResultHandler to be added to the root view of the content.

contentBuilder

The BottomSheetContentBuilder describing the navigation graph of the content.

sheetContentBuilder

The BottomSheetContentBuilder describing the navigation graph of the sheet content.

Constructors

Link copied to clipboard
constructor(navigationMapper: @Composable (Action) -> BottomSheetComposableNavSpec, initialSheetValue: ModalBottomSheetValue = ModalBottomSheetValue.Hidden, parentRouteController: RouteController? = null, contentRootResultHandlers: List<NavHostResultHandler<*, *>> = emptyList(), contentBuilder: BottomSheetContentBuilder, sheetContentBuilder: BottomSheetContentBuilder)

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)