-
public final class HapticsKt
-
-
Method Summary
Modifier and Type Method Description final static RotaryHapticHandlerrememberDisabledHaptic()Remember disabled haptics handler final static RotaryHapticHandlerrememberRotaryHapticHandler(ScrollableState scrollableState, Long throttleThresholdMs, Long hapticsThresholdPx, Channel<RotaryHapticsType> hapticsChannel, RotaryHapticFeedback rotaryHaptics)Remember rotary haptic handler. final static RotaryHapticFeedbackrememberDefaultRotaryHapticFeedback()-
-
Method Detail
-
rememberDisabledHaptic
final static RotaryHapticHandler rememberDisabledHaptic()
Remember disabled haptics handler
-
rememberRotaryHapticHandler
final static RotaryHapticHandler rememberRotaryHapticHandler(ScrollableState scrollableState, Long throttleThresholdMs, Long hapticsThresholdPx, Channel<RotaryHapticsType> hapticsChannel, RotaryHapticFeedback rotaryHaptics)
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.hapticsThresholdPx- A scroll threshold after which haptic is produced.hapticsChannel- Channel to which haptic events will be sentrotaryHaptics- Interface for Rotary haptic feedback which performs haptics
-
rememberDefaultRotaryHapticFeedback
final static RotaryHapticFeedback rememberDefaultRotaryHapticFeedback()
-
-
-
-