DynamicAnimation.OnAnimationEndListener

interface DynamicAnimation.OnAnimationEndListener


An animation listener that receives end notifications from an animation.

Summary

Public functions

Unit
onAnimationEnd(
    animation: DynamicAnimation!,
    canceled: Boolean,
    value: Float,
    velocity: Float
)

Notifies the end of an animation.

Public functions

onAnimationEnd

Added in 1.0.0
fun onAnimationEnd(
    animation: 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!

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