Package 

Class AnimationScrollBehavior

  • All Implemented Interfaces:
    com.google.android.horologist.compose.rotaryinput.RotaryScrollBehavior

    
    public final class AnimationScrollBehavior
     implements RotaryScrollBehavior
                        

    Animation implementation of RotaryScrollBehavior. This class does a smooth animation when the scroll by N pixels is done. This animation works well on Rsb(high-res) and Bezel(low-res) devices.

    • Method Summary

      Modifier and Type Method Description
      Unit handleEvent(Float targetValue) Handles scroll event to targetValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnimationScrollBehavior

        AnimationScrollBehavior(ScrollableState scrollableState)