public abstract class

SeekableAnimatedVectorDrawable.AnimationCallback

extends java.lang.Object

 java.lang.Object

↳androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable.AnimationCallback

Overview

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

Summary

Constructors
publicAnimationCallback()

Methods
public voidonAnimationEnd(SeekableAnimatedVectorDrawable drawable)

Called when the animation ends.

public voidonAnimationPause(SeekableAnimatedVectorDrawable drawable)

Called when the animation is paused.

public voidonAnimationResume(SeekableAnimatedVectorDrawable drawable)

Called when the animation is resumed.

public voidonAnimationStart(SeekableAnimatedVectorDrawable drawable)

Called when the animation starts.

public voidonAnimationUpdate(SeekableAnimatedVectorDrawable drawable)

Called on every frame while the animation is running.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public AnimationCallback()

Methods

public void onAnimationStart(SeekableAnimatedVectorDrawable drawable)

Called when the animation starts.

Parameters:

drawable: The drawable started the animation.

public void onAnimationEnd(SeekableAnimatedVectorDrawable drawable)

Called when the animation ends.

Parameters:

drawable: The drawable finished the animation.

public void onAnimationPause(SeekableAnimatedVectorDrawable drawable)

Called when the animation is paused.

Parameters:

drawable: The drawable.

public void onAnimationResume(SeekableAnimatedVectorDrawable drawable)

Called when the animation is resumed.

Parameters:

drawable: The drawable.

public void onAnimationUpdate(SeekableAnimatedVectorDrawable drawable)

Called on every frame while the animation is running. The implementation must not register or unregister any SeekableAnimatedVectorDrawable.AnimationCallback here.

Parameters:

drawable: The drawable.