The Android Developer Challenge is back! Submit your idea before December 2.

OnAnimationUpdateListener

interface OnAnimationUpdateListener
androidx.dynamicanimation.animation.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 methods

abstract Unit
onAnimationUpdate(animation: DynamicAnimation<DynamicAnimation<*>!>!, value: Float, velocity: Float)

Notifies the occurrence of another frame of the animation.

Public methods

onAnimationUpdate

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

Notifies the occurrence of another frame of the animation.

Parameters
animation DynamicAnimation<DynamicAnimation<*>!>!: animation that the update listener is added to
value DynamicAnimation<DynamicAnimation<*>!>!: the current value of the animation
velocity DynamicAnimation<DynamicAnimation<*>!>!: the current velocity of the animation