Bottom Sheet State
class BottomSheetState(initialValue: BottomSheetValue, animationSpec: <Error class: unknown class><Float> = SwipeableDefaults.AnimationSpec, confirmValueChange: (BottomSheetValue) -> Boolean = { true })
State of the persistent bottom sheet in ScanbotScaffold.
Parameters
initial Value
The initial value of the state.
animation Spec
The default animation that will be used to animate to a new state.
confirm Value Change
Optional callback invoked to confirm or veto a pending state change.
Constructors
Link copied to clipboard
constructor(initialValue: BottomSheetValue, animationSpec: <Error class: unknown class><Float> = SwipeableDefaults.AnimationSpec, confirmValueChange: (BottomSheetValue) -> Boolean = { true })
Properties
Link copied to clipboard
Link copied to clipboard
Whether the bottom sheet is collapsed.
Link copied to clipboard
Whether the bottom sheet is expanded.
Link copied to clipboard
The fraction of the progress going from currentValue to the targetValue, within 0f..1f bounds, or 1f if the sheet is in a settled state.
Link copied to clipboard