Interface

FloatingToolbarScrollBehavior

A FloatingToolbarScrollBehavior defines how a floating toolbar should behave when the content under it is scrolled.

Source set: Common
public sealed interface FloatingToolbarScrollBehavior : NestedScrollConnection

A FloatingToolbarScrollBehavior defines how a floating toolbar should behave when the content under it is scrolled.

Properties

exitDirection

Source set: Common
public val exitDirection: FloatingToolbarExitDirection

Indicates the direction towards which the floating toolbar exits the screen.

state

Source set: Common
public val state: FloatingToolbarState

A FloatingToolbarState that is attached to this behavior and is read and updated when scrolling happens.

snapAnimationSpec

Source set: Common
public val snapAnimationSpec: AnimationSpec<Float>

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

Source set: Common
public val flingAnimationSpec: DecayAnimationSpec<Float>

An DecayAnimationSpec that defines how to fling the floating toolbar when the user flings the toolbar itself, or the content below it.

floatingScrollBehaviorModifier

Source set: Common
public val floatingScrollBehaviorModifier: Modifier

A Modifier that is attached to this behavior.

Functions

floatingScrollBehavior

Source set: Common
@Deprecated(
        message = "Use floatingScrollBehaviorModifier instead.",
        replaceWith = ReplaceWith("this.then(floatingScrollBehaviorModifier)"),
    )
    public fun Modifier.floatingScrollBehavior(): Modifier

A Modifier that is attached to this behavior.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: