Package-level declarations

Types

Link copied to clipboard
class GenericMotionRotaryInputAccumulator(context: Context, onValueChange: State<(change: Float) -> Unit>, eventAccumulationThresholdMs: Long = RotaryInputConfigDefaults.DEFAULT_EVENT_ACCUMULATION_THRESHOLD_MS, minValueChangeDistancePx: Float = RotaryInputConfigDefaults.DEFAULT_MIN_VALUE_CHANGE_DISTANCE_PX, rateLimitCoolDownMs: Long = RotaryInputConfigDefaults.DEFAULT_RATE_LIMIT_COOL_DOWN_MS)

Accumulator to trigger callbacks based on MotionEvent from rotary input.

Link copied to clipboard

Defaults for rotary modifiers

Link copied to clipboard
Link copied to clipboard

A wrapper around VelocityTracker1D to provide support for rotary input.

Functions

Link copied to clipboard
fun accumulatedBehavior(eventAccumulationThresholdMs: Long = RotaryInputConfigDefaults.DEFAULT_EVENT_ACCUMULATION_THRESHOLD_MS, minValueChangeDistancePx: Float = RotaryInputConfigDefaults.DEFAULT_MIN_VALUE_CHANGE_DISTANCE_PX, rateLimitCoolDownMs: Long = RotaryInputConfigDefaults.DEFAULT_RATE_LIMIT_COOL_DOWN_MS, isLowRes: Boolean = isLowResInput(), onValueChange: (change: Float) -> Unit): RotaryScrollableBehavior
Link copied to clipboard