exitAlwaysScrollBehavior

@Composable
fun exitAlwaysScrollBehavior(exitDirection: FloatingToolbarExitDirection, state: FloatingToolbarState = rememberFloatingToolbarState(), snapAnimationSpec: AnimationSpec<Float> = MotionSchemeKeyTokens.DefaultEffects.value(), flingAnimationSpec: DecayAnimationSpec<Float> = rememberSplineBasedDecay()): FloatingToolbarScrollBehavior

Returns a FloatingToolbarScrollBehavior. A floating toolbar that is set up with this FloatingToolbarScrollBehavior will immediately collapse when the content is pulled up, and will immediately appear when the content is pulled down.

Parameters

exitDirection

indicates the direction towards which the floating toolbar exits the screen

state

the state object to be used to control or observe the floating toolbar's scroll state. See rememberFloatingToolbarState for a state that is remembered across compositions.

snapAnimationSpec

an AnimationSpec that defines how the floating toolbar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position

flingAnimationSpec

an DecayAnimationSpec that defines how to fling the floating app bar when the user flings the toolbar itself, or the content below it