BottomSheetSheetContentRouteController

class BottomSheetSheetContentRouteController(bottomSheetNavigatorState: StateFlow<BottomSheetNavigatorState?>, coroutineScope: StateFlow<CoroutineScope?>) : RouteController

RouteController for the sheet content of a BottomSheetNavigatorState

Parameters

bottomSheetNavigatorState

The flow of BottomSheetNavigatorState where the BottomSheetNavigatorState.sheetContentNavHostController is to be managed by this Route Controller

coroutineScope

A flow of CoroutineScope for managing the ModalBottomSheetState.

Constructors

Link copied to clipboard
constructor(bottomSheetNavigatorState: StateFlow<BottomSheetNavigatorState?>, coroutineScope: StateFlow<CoroutineScope?>)

Functions

Link copied to clipboard
open override fun AddResultHandlers(viewModel: BaseLifecycleViewModel, resultHandlers: List<NavHostResultHandler<*, *>>)

Adds a list of NavHostResultHandler to handles results for this route controller.

Link copied to clipboard
open override fun back(result: Route.Result): Boolean

Navigates back

Link copied to clipboard
open override fun close()

Closes this RouteController

Link copied to clipboard
open override fun navigate(newRoute: Route)

Navigates to a Route