androidx.compose.material3

FloatingToolbarStateSince 1.10

Interface

No hand-written docs yet.

A state object that can be hoisted to control and observe the floating toolbar state. The state is read and updated by a FloatingToolbarScrollBehavior implementation.

interface FloatingToolbarState

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a FloatingToolbarState.

Properties

offsetLimit

val offsetLimit: Float

The floating toolbar's offset limit in pixels, which represents the limit that a floating toolbar is allowed to collapse to.

offset

val offset: Float

The floating toolbar's current offset in pixels. This offset is applied to the fixed size of the toolbar to control the displayed size when content is being scrolled.

contentOffset

val contentOffset: Float

The total offset of the content scrolled under the floating toolbar.

Library docs

A state object that can be hoisted to control and observe the floating toolbar state. The state is read and updated by a FloatingToolbarScrollBehavior implementation.

In most cases, this state will be created via rememberFloatingToolbarState.