Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/animation/Animator.AnimatorListener#pubmethods)

# Animator.AnimatorListener

*** ** * ** ***

` public static interface Animator.AnimatorListener `   
` `

|---|
| android.animation.Animator.AnimatorListener |

Known indirect subclasses [AnimatorListenerAdapter](https://developer.android.com/reference/android/animation/AnimatorListenerAdapter) [AnimatorListenerAdapter](https://developer.android.com/reference/android/animation/AnimatorListenerAdapter) This adapter class provides empty implementations of the methods from `https://developer.android.com/reference/android/animation/Animator.AnimatorListener`.   

*** ** * ** ***

<br />

An animation listener receives notifications from an animation. Notifications indicate animation related events, such as the end or the repetition of the animation.

<br />

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationCancel(android.animation.Animator)(https://developer.android.com/reference/android/animation/Animator animation) ` <br /> Notifies the cancellation of the animation. |
| ` abstract void` | ` https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationEnd(android.animation.Animator)(https://developer.android.com/reference/android/animation/Animator animation) ` <br /> Notifies the end of the animation. |
| ` default void` | ` https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationEnd(android.animation.Animator,%20boolean)(https://developer.android.com/reference/android/animation/Animator animation, boolean isReverse) ` <br /> Notifies the end of the animation. |
| ` abstract void` | ` https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationRepeat(android.animation.Animator)(https://developer.android.com/reference/android/animation/Animator animation) ` <br /> Notifies the repetition of the animation. |
| ` abstract void` | ` https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationStart(android.animation.Animator)(https://developer.android.com/reference/android/animation/Animator animation) ` <br /> Notifies the start of the animation. |
| ` default void` | ` https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationStart(android.animation.Animator,%20boolean)(https://developer.android.com/reference/android/animation/Animator animation, boolean isReverse) ` <br /> Notifies the start of the animation as well as the animation's overall play direction. |

## Public methods

### onAnimationCancel

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onAnimationCancel (Animator animation)
```

<br />

Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

<br />

<br />

| Parameters ||
|---|---|
| `animation` | `Animator`: The animation which was canceled. This value cannot be `null`. <br /> |

### onAnimationEnd

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onAnimationEnd (Animator animation)
```

<br />

Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

<br />

<br />

| Parameters ||
|---|---|
| `animation` | `Animator`: The animation which reached its end. This value cannot be `null`. <br /> |

### onAnimationEnd

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onAnimationEnd (Animator animation, 
                boolean isReverse)
```

<br />

Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

This method's default behavior is to call `https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationEnd(android.animation.Animator)`. This method can be overridden, though not required, to get the additional play direction info when an animation ends. Skipping calling super when overriding this method results in `https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationEnd(android.animation.Animator)` not getting called.

<br />

| Parameters ||
|---|---|
| `animation` | `Animator`: The animation which reached its end. This value cannot be `null`. <br /> |
| `isReverse` | `boolean`: Whether the animation is playing in reverse. <br /> |

### onAnimationRepeat

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onAnimationRepeat (Animator animation)
```

<br />

Notifies the repetition of the animation.

<br />

<br />

| Parameters ||
|---|---|
| `animation` | `Animator`: The animation which was repeated. This value cannot be `null`. <br /> |

### onAnimationStart

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onAnimationStart (Animator animation)
```

<br />

Notifies the start of the animation.

<br />

<br />

| Parameters ||
|---|---|
| `animation` | `Animator`: The started animation. This value cannot be `null`. <br /> |

### onAnimationStart

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onAnimationStart (Animator animation, 
                boolean isReverse)
```

<br />

Notifies the start of the animation as well as the animation's overall play direction. This method's default behavior is to call `https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationStart(android.animation.Animator)`. This method can be overridden, though not required, to get the additional play direction info when an animation starts. Skipping calling super when overriding this method results in `https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationStart(android.animation.Animator)` not getting called.

<br />

| Parameters ||
|---|---|
| `animation` | `Animator`: The started animation. This value cannot be `null`. <br /> |
| `isReverse` | `boolean`: Whether the animation is playing in reverse. <br /> |