BottomSheetStandardState

class BottomSheetStandardState(initialValue: BottomSheetStandardStateValue, density: Density, val hasHiddenState: Boolean)

State of BottomSheetStandard composable.

Parameters

initialValue

the initial BottomSheetStandardStateValue of the state. Must not be set to Hidden if hasHiddenState is set to false.

density

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

hasHiddenState

whether the BottomSheetStandardState has a Hidden state.

Constructors

Link copied to clipboard
constructor(initialValue: BottomSheetStandardStateValue, density: Density, hasHiddenState: Boolean)

Properties

Link copied to clipboard
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 maximize()

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

Link copied to clipboard
suspend fun minimize()

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