DynamicAnimation.OnAnimationUpdateListener


interface DynamicAnimation.OnAnimationUpdateListener


Implementors of this interface can add themselves as update listeners to an DynamicAnimation instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that DynamicAnimation.

Summary

Public functions

Unit
onAnimationUpdate(
    animation: DynamicAnimation!,
    value: Float,
    velocity: Float
)

Notifies the occurrence of another frame of the animation.

Public functions

onAnimationUpdate

Added in 1.0.0
fun onAnimationUpdate(
    animation: DynamicAnimation!,
    value: Float,
    velocity: Float
): Unit

Notifies the occurrence of another frame of the animation.

Parameters
animation: DynamicAnimation!

animation that the update listener is added to

value: Float

the current value of the animation

velocity: Float

the current velocity of the animation