Interface

SearchBarScrollBehavior

A SearchBarScrollBehavior defines how a search bar should behave when the content beneath it is scrolled.

Source set: Common
public interface SearchBarScrollBehavior

A SearchBarScrollBehavior defines how a search bar should behave when the content beneath it is scrolled.

Properties

scrollState

Source set: Common
public val scrollState: SearchBarScrollState

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

nestedScrollConnection

Source set: Common
public val nestedScrollConnection: NestedScrollConnection

A NestedScrollConnection that should be attached to a androidx.compose.ui.input.nestedscroll.nestedScroll in order to keep track of scroll events.

searchBarScrollBehaviorModifier

Source set: Common
public val searchBarScrollBehaviorModifier: Modifier

The modifier that adds scrolling behavior to the search bar component. AppBarWithSearch applies this automatically.

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: