androidx.compose.material3
BottomAppBarStateExperimental
Interface
No hand-written docs yet.
A state object that can be hoisted to control and observe the bottom app bar state. The state is read and updated by a BottomAppBarScrollBehavior implementation.
interface BottomAppBarState
How to get one
Create it
BottomAppBarState(initialHeightOffsetLimit: Float, initialHeightOffset: Float, initialContentOffset: Float)
Ready-made values and functions that return it
Used by
Parameters that take a BottomAppBarState.
Properties
heightOffsetLimit
val heightOffsetLimit: Float
The bottom app bar's height offset limit in pixels, which represents the limit that a bottom app bar is allowed to collapse to.
heightOffset
val heightOffset: Float
The bottom app bar's current height offset in pixels. This height offset is applied to the fixed height of the app bar to control the displayed height when content is being scrolled.
contentOffset
val contentOffset: Float
The total offset of the content scrolled under the bottom app bar.
collapsedFraction
val collapsedFraction: Float
A value that represents the collapsed height percentage of the app bar.
Saver
val Saver: Saver<BottomAppBarState, *>
The default Saver implementation for BottomAppBarState.
Library docs
A state object that can be hoisted to control and observe the bottom app bar state. The state is
read and updated by a BottomAppBarScrollBehavior implementation.
In most cases, this state will be created via rememberBottomAppBarState.