-
public final class RotaryKt
-
-
Method Summary
Modifier and Type Method Description final static ModifierrotaryWithScroll(Modifier $self, ScrollableState scrollableState, FocusRequester focusRequester, FlingBehavior flingBehavior, RotaryHapticHandler rotaryHaptics, Boolean reverseDirection)A modifier which connects rotary events with scrollable. final static ModifierrotaryWithSnap(Modifier $self, RotaryScrollAdapter rotaryScrollAdapter, FocusRequester focusRequester, SnapParameters snapParameters, RotaryHapticHandler rotaryHaptics, Boolean reverseDirection)A modifier which connects rotary events with scrollable. final static RotaryScrollAdaptertoRotaryScrollAdapter(ScalingLazyListState $self)An extension function for creating RotaryScrollAdapter from ScalingLazyListState -
-
Method Detail
-
rotaryWithScroll
final static Modifier rotaryWithScroll(Modifier $self, ScrollableState scrollableState, FocusRequester focusRequester, FlingBehavior flingBehavior, RotaryHapticHandler rotaryHaptics, Boolean reverseDirection)
A modifier which connects rotary events with scrollable. This modifier supports scroll with fling.
- Parameters:
scrollableState- Scrollable state which will be scrolled while receiving rotary eventsfocusRequester- Requests the focus for rotary input.flingBehavior- Logic describing fling behavior.rotaryHaptics- Class which will handle haptic feedbackreverseDirection- Reverse the direction of scrolling.
-
rotaryWithSnap
final static Modifier rotaryWithSnap(Modifier $self, RotaryScrollAdapter rotaryScrollAdapter, FocusRequester focusRequester, SnapParameters snapParameters, RotaryHapticHandler rotaryHaptics, Boolean reverseDirection)
A modifier which connects rotary events with scrollable. This modifier supports snap.
- Parameters:
rotaryScrollAdapter- A connection between scrollable objects and rotary eventsfocusRequester- Requests the focus for rotary input.rotaryHaptics- Class which will handle haptic feedbackreverseDirection- Reverse the direction of scrolling.
-
toRotaryScrollAdapter
final static RotaryScrollAdapter toRotaryScrollAdapter(ScalingLazyListState $self)
An extension function for creating RotaryScrollAdapter from ScalingLazyListState
-
-
-
-