# SeekableAnimatedVectorDrawable.AnimationCallback

Artifact: [androidx.vectordrawable:vectordrawable-seekable](https://developer.android.com/jetpack/androidx/releases/vectordrawable) [View Source](https://cs.android.com/search?q=file:androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.java+class:androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable.AnimationCallback) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/vectordrawable#1.0.0)

*** ** * ** ***


```
public abstract class SeekableAnimatedVectorDrawable.AnimationCallback
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback#AnimationCallback()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback#onAnimationEnd(androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable)` Called when the animation ends. |
| `void` | `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback#onAnimationPause(androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable)` Called when the animation is paused. |
| `void` | `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback#onAnimationResume(androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable)` Called when the animation is resumed. |
| `void` | `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback#onAnimationStart(androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable)` Called when the animation starts. |
| `void` | `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback#onAnimationUpdate(androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable)` Called on every frame while the animation is running. |

## Public constructors

### AnimationCallback

Added in 1.0.0

```
public AnimationCallback()
```

## Public methods

### onAnimationEnd

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

```
public void onAnimationEnd(@NonNull SeekableAnimatedVectorDrawable drawable)
```

Called when the animation ends.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable` | The drawable finished the animation. |

### onAnimationPause

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

```
public void onAnimationPause(@NonNull SeekableAnimatedVectorDrawable drawable)
```

Called when the animation is paused.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable` | The drawable. |

### onAnimationResume

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

```
public void onAnimationResume(@NonNull SeekableAnimatedVectorDrawable drawable)
```

Called when the animation is resumed.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable` | The drawable. |

### onAnimationStart

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

```
public void onAnimationStart(@NonNull SeekableAnimatedVectorDrawable drawable)
```

Called when the animation starts.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable` | The drawable started the animation. |

### onAnimationUpdate

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

```
public void onAnimationUpdate(@NonNull SeekableAnimatedVectorDrawable drawable)
```

Called on every frame while the animation is running. The implementation must not register or unregister any `https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable.AnimationCallback` here.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/SeekableAnimatedVectorDrawable drawable` | The drawable. |