Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.dynamicanimation:dynamicanimation:1.0.0-rc01

DynamicAnimation.OnAnimationEndListener

public static interface DynamicAnimation.OnAnimationEndListener

androidx.dynamicanimation.animation.DynamicAnimation.OnAnimationEndListener


An animation listener that receives end notifications from an animation.

Summary

Public methods

abstract void onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, float velocity)

Notifies the end of an animation.

Public methods

onAnimationEnd

public abstract void onAnimationEnd (DynamicAnimation animation, 
                boolean canceled, 
                float value, 
                float velocity)

Notifies the end of an animation. Note that this callback will be invoked not only when an animation reach equilibrium, but also when the animation is canceled.

Parameters
animation DynamicAnimation: animation that has ended or was canceled

canceled boolean: whether the animation has been canceled

value float: the final value when the animation stopped

velocity float: the final velocity when the animation stopped