# DynamicAnimation.OnAnimationEndListener

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.OnAnimationEndListener) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/dynamicanimation#1.0.0)

*** ** * ** ***


```
public interface DynamicAnimation.OnAnimationEndListener
```

<br />

*** ** * ** ***

An animation listener that receives end notifications from an animation.

## Summary

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

## Public methods

### onAnimationEnd

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

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/dynamicanimation/animation/DynamicAnimation animation` | animation that has ended or was canceled |
| `boolean canceled` | whether the animation has been canceled |
| `float value` | the final value when the animation stopped |
| `float velocity` | the final velocity when the animation stopped |