Package 

Class DecayAnimation


  • 
    public class DecayAnimation
    extends AnimationDriver
                        

    Implementation of AnimationDriver providing support for decay animations. The implementation is copied from the JS version in {@code AnimatedImplementation.js}.

    • Method Summary

      Modifier and Type Method Description
      void resetConfig(ReadableMap config) This method will get called when some of the configuration gets updated while the animation isrunning.
      void runAnimationStep(long frameTimeNanos) This method gets called in the main animation loop with a frame time passed down from theandroid choreographer callback.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • resetConfig

         void resetConfig(ReadableMap config)

        This method will get called when some of the configuration gets updated while the animation isrunning. In that case animation should restart keeping its internal state to provide a smoothtransision. E.g. in case of a spring animation we want to keep the current value and speed andstart animating with the new properties (different destination or spring settings)

      • runAnimationStep

         void runAnimationStep(long frameTimeNanos)

        This method gets called in the main animation loop with a frame time passed down from theandroid choreographer callback.