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 |
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 |