RotaryScrollableBehavior


interface RotaryScrollableBehavior


An interface for handling scroll events. Has implementations for handling scroll with/without fling FlingRotaryScrollableBehavior and for handling snap LowResSnapRotaryScrollableBehavior, HighResSnapRotaryScrollableBehavior (see Modifier.rotaryScrollable for descriptions of low-res and high-res devices).

Summary

Public functions

suspend Unit
CoroutineScope.performScroll(
    timestampMillis: Long,
    delta: Float,
    inputDeviceId: Int,
    orientation: Orientation
)

Executes a scrolling operation based on rotary input.

Public functions

suspend fun CoroutineScope.performScroll(
    timestampMillis: Long,
    delta: Float,
    inputDeviceId: Int,
    orientation: Orientation
): Unit

Executes a scrolling operation based on rotary input.

Parameters
timestampMillis: Long

The time in milliseconds at which this even occurred

delta: Float

The amount to scroll, in pixels

inputDeviceId: Int

The id for the input device that this event came from

orientation: Orientation

Orientation of the scrolling