rememberBottomDrawerState

Functions summary

BottomDrawerState
@Composable
rememberBottomDrawerState(
    initialValue: BottomDrawerValue,
    confirmStateChange: (BottomDrawerValue) -> Boolean,
    animationSpec: AnimationSpec<Float>
)

Create and remember a BottomDrawerState.

Cmn

Functions

rememberBottomDrawerState

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

Create and remember a BottomDrawerState.

Parameters
initialValue: BottomDrawerValue

The initial value of the state.

confirmStateChange: (BottomDrawerValue) -> Boolean = { true }

Optional callback invoked to confirm or veto a pending state change.

animationSpec: AnimationSpec<Float> = DrawerDefaults.AnimationSpec

The animation spec to be used for open/close animations, as well as settling when a user lets go.