GenericMotionRotaryInputAccumulator
class GenericMotionRotaryInputAccumulator(context: Context, onValueChange: (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.
This should normally be passed events received from android.view.View.onGenericMotionEvent.
Constructors
Link copied to clipboard
constructor(context: Context, onValueChange: (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)
Functions
Link copied to clipboard
Process a MotionEvent.