BottomSheetModalState

State of the BottomSheetModal composable.

Parameters

initialValue

the initial BottomSheetModalStateValue of the state.

density

the Density that this state can use to convert values to and from dp.

Constructors

Link copied to clipboard
constructor(initialValue: BottomSheetModalStateValue, density: Density)

Properties

Link copied to clipboard
Link copied to clipboard

Whether the bottom sheet is visible.

Link copied to clipboard

The target value the state will settle at once the current interaction ends, or the currentValue if there is no interaction in progress.

Functions

Link copied to clipboard
suspend fun hide()

Hide the bottom sheet with animation and suspend until it is fully hidden or animation has been cancelled.

Link copied to clipboard
suspend fun show()

Animate the bottom sheet to auto height and suspend until it is fully shown or animation has been cancelled.