Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

OnAnimationEndListener

interface OnAnimationEndListener
androidx.dynamicanimation.animation.DynamicAnimation.OnAnimationEndListener

An animation listener that receives end notifications from an animation.

Summary

Public methods

abstract Unit
onAnimationEnd(animation: DynamicAnimation<DynamicAnimation<*>!>!, canceled: Boolean, value: Float, velocity: Float)

Notifies the end of an animation.

Public methods

onAnimationEnd

abstract fun onAnimationEnd(animation: DynamicAnimation<DynamicAnimation<*>!>!, canceled: Boolean, value: Float, velocity: Float): Unit

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<DynamicAnimation<*>!>!: animation that has ended or was canceled
canceled DynamicAnimation<DynamicAnimation<*>!>!: whether the animation has been canceled
value DynamicAnimation<DynamicAnimation<*>!>!: the final value when the animation stopped
velocity DynamicAnimation<DynamicAnimation<*>!>!: the final velocity when the animation stopped