rotaryWithSnap

fun Modifier.rotaryWithSnap(rotaryScrollAdapter: RotaryScrollAdapter, focusRequester: FocusRequester = rememberActiveFocusRequester(), snapParameters: SnapParameters = RotaryDefaults.snapParametersDefault, rotaryHaptics: RotaryHapticHandler = rememberRotaryHapticHandler(rotaryScrollAdapter.scrollableState), reverseDirection: Boolean = false): Modifier

A modifier which connects rotary events with scrollable. This modifier supports snap.

Parameters

focusRequester

Requests the focus for rotary input. By default comes from rememberActiveFocusRequester, which is used with HierarchicalFocusCoordinator

rotaryScrollAdapter

A connection between scrollable objects and rotary events

rotaryHaptics

Class which will handle haptic feedback

reverseDirection

Reverse the direction of scrolling. Should be aligned with Scrollable reverseDirection parameter