rememberBottomDrawerState

Composable Function

Common
@Composable
fun rememberBottomDrawerState(
    initialValue: BottomDrawerValue,
    confirmStateChange: (BottomDrawerValue) -> Boolean = { true },
    animationSpec: AnimationSpec<Float> = DrawerDefaults.AnimationSpec,
): BottomDrawerState

Create and remember a BottomDrawerState.

Parameters

initialValueThe initial value of the state.
confirmStateChangeOptional callback invoked to confirm or veto a pending state change.
animationSpecThe animation spec to be used for open/close animations, as well as settling when a user lets go.