androidx.compose.material3
BottomAppBarScrollBehaviorExperimental
Interface
No hand-written docs yet.
A BottomAppBarScrollBehavior defines how a bottom app bar should behave when the content under it is scrolled.
interface BottomAppBarScrollBehavior
How to get one
Ready-made values and functions that return it
Used by
Parameters that take a BottomAppBarScrollBehavior.
Properties
state
val state: BottomAppBarState
A BottomAppBarState that is attached to this behavior and is read and updated when scrolling happens.
isPinned
val isPinned: Boolean
Indicates whether the bottom app bar is pinned.
snapAnimationSpec
val snapAnimationSpec: AnimationSpec<Float>?
An optional AnimationSpec that defines how the bottom app bar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position.
flingAnimationSpec
val flingAnimationSpec: DecayAnimationSpec<Float>?
An optional DecayAnimationSpec that defines how to fling the bottom app bar when the user flings the app bar itself, or the scrollable content.
nestedScrollConnection
val nestedScrollConnection: NestedScrollConnection
A NestedScrollConnection that should be attached to a androidx.compose.ui.input.nestedscroll.nestedScroll in order to keep track of the scroll events.
Library docs
A BottomAppBarScrollBehavior defines how a bottom app bar should behave when the content under it is scrolled.