-
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}
.
-
-
Constructor Summary
Constructors Constructor Description DecayAnimation(ReadableMap config)
-
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. -
-
Constructor Detail
-
DecayAnimation
DecayAnimation(ReadableMap config)
-
-
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.
-
-
-
-