Package 

Class RotaryKt

    • Method Summary

      Modifier and Type Method Description
      final static Modifier rotaryWithScroll(Modifier $self, ScrollableState scrollableState, FocusRequester focusRequester, FlingBehavior flingBehavior, RotaryHapticHandler rotaryHaptics, Boolean reverseDirection) A modifier which connects rotary events with scrollable.
      final static Modifier rotaryWithSnap(Modifier $self, RotaryScrollAdapter rotaryScrollAdapter, FocusRequester focusRequester, SnapParameters snapParameters, RotaryHapticHandler rotaryHaptics, Boolean reverseDirection) A modifier which connects rotary events with scrollable.
      final static RotaryScrollAdapter toRotaryScrollAdapter(ScalingLazyListState $self) An extension function for creating RotaryScrollAdapter from ScalingLazyListState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 events
        focusRequester - Requests the focus for rotary input.
        flingBehavior - Logic describing fling behavior.
        rotaryHaptics - Class which will handle haptic feedback
        reverseDirection - 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 events
        focusRequester - Requests the focus for rotary input.
        rotaryHaptics - Class which will handle haptic feedback
        reverseDirection - Reverse the direction of scrolling.