GleamState
State of a Gleam composable, such as Gleam.
Contains states relating to its swipe position and animations between state values.
Parameters
The initial value of the state, representing the Gleam's initial visibility.
The density that this state can use to convert values to and from dp.
Optional callback invoked to confirm or veto a pending Gleam state change.
Whether the hidden state should be skipped. If true, the Gleam will always expand to the Expanded state and move to the PartiallyExpanded if available, either programmatically or by user interaction.
Constructors
Properties
The current visibility state of the Gleam.
Checks if the Gleam has a defined PartiallyExpanded state.
The target visibility state of the Gleam.
Functions
Delegates the confirmation of a proposed value change to the underlying anchoredDraggableState. This allows for centralized control over value change logic, including potential vetoing of changes.
Animates the Gleam to its PartiallyExpanded state and suspends the coroutine until the animation finishes or is cancelled.
Retrieves the current offset (in pixels) of the Gleam.
Animates the Gleam to either its PartiallyExpanded state (if defined) or the Expanded state, and suspends the coroutine until the animation finishes or is cancelled.