# DynamicAnimation.OnAnimationUpdateListener

Artifact: [androidx.dynamicanimation:dynamicanimation](https://developer.android.com/jetpack/androidx/releases/dynamicanimation) [View Source](https://cs.android.com/search?q=file:androidx/dynamicanimation/animation/DynamicAnimation.java+class:androidx.dynamicanimation.animation.DynamicAnimation.OnAnimationUpdateListener) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/dynamicanimation#1.0.0)

*** ** * ** ***


```
public interface DynamicAnimation.OnAnimationUpdateListener
```

<br />

*** ** * ** ***

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 void` | `https://developer.android.com/reference/androidx/dynamicanimation/animation/DynamicAnimation.OnAnimationUpdateListener#onAnimationUpdate(androidx.dynamicanimation.animation.DynamicAnimation,float,float)( https://developer.android.com/reference/androidx/dynamicanimation/animation/DynamicAnimation animation, float value, float velocity )` Notifies the occurrence of another frame of the animation. |

## Public methods

### onAnimationUpdate

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/dynamicanimation#1.0.0)

```
abstract void onAnimationUpdate(
    DynamicAnimation animation,
    float value,
    float velocity
)
```

Notifies the occurrence of another frame of the animation.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/dynamicanimation/animation/DynamicAnimation animation` | animation that the update listener is added to |
| `float value` | the current value of the animation |
| `float velocity` | the current velocity of the animation |