# DynamicAnimation.OnAnimationUpdateListener

added in[version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-dynamic-animation:28.0.0-alpha1  

# DynamicAnimation.OnAnimationUpdateListener

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


interface
DynamicAnimation.OnAnimationUpdateListener
`  
`


`

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

## Public methods

### onAnimationUpdate

added in[version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

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

Notifies the occurrence of another frame of the animation.

<br />

|                                       Parameters                                       ||
|-------------|---------------------------------------------------------------------------|
| `animation` | `DynamicAnimation`: animation that the update listener is added to <br /> |
| `value`     | `float`: the current value of the animation <br />                        |
| `velocity`  | `float`: the current velocity of the animation <br />                     |

-

  ## Interfaces

  - [DynamicAnimation.OnAnimationEndListener](https://developer.android.com/reference/android/support/animation/DynamicAnimation.OnAnimationEndListener)
  - [DynamicAnimation.OnAnimationUpdateListener](https://developer.android.com/reference/android/support/animation/DynamicAnimation.OnAnimationUpdateListener)
-

  ## Classes

  - [DynamicAnimation](https://developer.android.com/reference/android/support/animation/DynamicAnimation)
  - [DynamicAnimation.ViewProperty](https://developer.android.com/reference/android/support/animation/DynamicAnimation.ViewProperty)
  - [FlingAnimation](https://developer.android.com/reference/android/support/animation/FlingAnimation)
  - [FloatPropertyCompat](https://developer.android.com/reference/android/support/animation/FloatPropertyCompat)
  - [FloatValueHolder](https://developer.android.com/reference/android/support/animation/FloatValueHolder)
  - [SpringAnimation](https://developer.android.com/reference/android/support/animation/SpringAnimation)
  - [SpringForce](https://developer.android.com/reference/android/support/animation/SpringForce)