Class

RemoteScrollState

State object for controlling and observing scroll position in Remote Compose layouts.

Source set: JvmAndAndroid
public class RemoteScrollState constructor(
    public val positionState: MutableRemoteFloat,
    @IntRange(from = 0) public val notches: Int,
)

State object for controlling and observing scroll position in Remote Compose layouts.

Note: RemoteScrollState uses @RememberInComposition because it holds mutable scroll position state (positionState) that must be remembered across recompositions to avoid resetting scroll position.

Functions

equals

Source set: JvmAndAndroid
override fun equals(other: Any?): Boolean

Creates a RemoteScrollState with an optional number of notches.

Parameters

notches The number of equally spaced snap points along the scroll range, or 0 for continuous scrolling.

hashCode

Source set: JvmAndAndroid
override fun hashCode(): Int

toString

Source set: JvmAndAndroid
override fun toString(): String
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: