# Animatable2Compat.AnimationCallback

added in[version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:animated-vector-drawable:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#pubctors)\|[Methods](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#)  

# Animatable2Compat.AnimationCallback

| 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

abstract
class
Animatable2Compat.AnimationCallback
`  
`

extends Object


``


`

|---|-----------------------------------------------------------------------|
| java.lang.Object                                                         ||
| ↳ | android.support.graphics.drawable.Animatable2Compat.AnimationCallback |

<br />

*** ** * ** ***

Abstract class for animation callback. Used to notify animation events.

## Summary

|                                                                                        ### Public constructors                                                                                        ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Animatable2Compat.AnimationCallback](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#Animatable2Compat.AnimationCallback())`() ` |

|                                                                                                                                                               ### Public methods                                                                                                                                                                ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onAnimationEnd](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#onAnimationEnd(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Called when the animation ends.       |
| ` void` | ` `[onAnimationStart](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#onAnimationStart(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Called when the animation starts. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### Animatable2Compat.AnimationCallback

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

```
Animatable2Compat.AnimationCallback ()
```

<br />

<br />

## Public methods

### onAnimationEnd

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

```
void onAnimationEnd (Drawable drawable)
```

Called when the animation ends.

<br />

|                             Parameters                              ||
|------------|---------------------------------------------------------|
| `drawable` | `Drawable`: The drawable finished the animation. <br /> |

### onAnimationStart

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

```
void onAnimationStart (Drawable drawable)
```

Called when the animation starts.

<br />

|                             Parameters                             ||
|------------|--------------------------------------------------------|
| `drawable` | `Drawable`: The drawable started the animation. <br /> |

-

  ## Interfaces

  - [Animatable2Compat](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat)
-

  ## Classes

  - [Animatable2Compat.AnimationCallback](https://developer.android.com/reference/android/support/graphics/drawable/Animatable2Compat.AnimationCallback)
  - [AnimatedVectorDrawableCompat](https://developer.android.com/reference/android/support/graphics/drawable/AnimatedVectorDrawableCompat)
  - [R](https://developer.android.com/reference/android/support/graphics/drawable/R)
  - [R.attr](https://developer.android.com/reference/android/support/graphics/drawable/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/graphics/drawable/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/graphics/drawable/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/graphics/drawable/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/graphics/drawable/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/graphics/drawable/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/graphics/drawable/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/graphics/drawable/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/graphics/drawable/R.string)
  - [R.style](https://developer.android.com/reference/android/support/graphics/drawable/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/graphics/drawable/R.styleable)
  - [VectorDrawableCompat](https://developer.android.com/reference/android/support/graphics/drawable/VectorDrawableCompat)