rememberRotaryHapticHandler
fun rememberRotaryHapticHandler(scrollableState: ScrollableState, throttleThresholdMs: Long = 30, hapticsThresholdPx: Long = 50, hapticsChannel: Channel<RotaryHapticsType> = rememberHapticChannel(), rotaryHaptics: RotaryHapticFeedback = rememberDefaultRotaryHapticFeedback()): RotaryHapticHandler
Remember rotary haptic handler.
Parameters
scrollableState
A scrollableState, used to determine whether the end of the scrollable was reached or not.
throttleThresholdMs
Throttling events within specified timeframe. Only first and last events will be received. Check throttleLatest for more info.
hapticsThresholdPx
A scroll threshold after which haptic is produced.
hapticsChannel
Channel to which haptic events will be sent
rotaryHaptics
Interface for Rotary haptic feedback which performs haptics