Composable Function

rememberRemoteScrollState

Creates and remembers a RemoteScrollState.

rememberRemoteScrollState

Source set: JvmAndAndroid
@Composable
public fun rememberRemoteScrollState(@IntRange(from = 0) notches: Int = 0): RemoteScrollState

Creates and remembers a RemoteScrollState.

Example of remembering scroll state for a vertically scrollable column:

Parameters

notches The number of equally spaced snap points (notches) along the scroll range. If greater than 0, the scroll position will snap to the nearest notch when the scroll gesture ends. If 0, scrolling is continuous.

Return

remembered RemoteScrollState

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: