# DynamicAnimation.OnAnimationEndListener

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.OnAnimationEndListener

| 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.OnAnimationEndListener
`  
`


`

|-------------------------------------------------------------------|
| android.support.animation.DynamicAnimation.OnAnimationEndListener |

<br />

*** ** * ** ***

An animation listener that receives end notifications from an animation.

## Summary

|                                                                                                                                                                                                             ### Public methods                                                                                                                                                                                                             ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onAnimationEnd](https://developer.android.com/reference/android/support/animation/DynamicAnimation.OnAnimationEndListener#onAnimationEnd(android.support.animation.DynamicAnimation, boolean, float, float))`(`[DynamicAnimation](https://developer.android.com/reference/android/support/animation/DynamicAnimation)` animation, boolean canceled, float value, float velocity) ` Notifies the end of an animation. |

## Public methods

### onAnimationEnd

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

```
void onAnimationEnd (DynamicAnimation animation, 
                boolean canceled, 
                float value, 
                float velocity)
```

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.

<br />

|                                    Parameters                                    ||
|-------------|---------------------------------------------------------------------|
| `animation` | `DynamicAnimation`: animation that has ended or was canceled <br /> |
| `canceled`  | `boolean`: whether the animation has been canceled <br />           |
| `value`     | `float`: the final value when the animation stopped <br />          |
| `velocity`  | `float`: the final velocity when the animation stopped <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)