Google is committed to advancing racial equity for Black communities. See how.

SeekableAnimatedVectorDrawable.AnimationCallback

public static abstract class SeekableAnimatedVectorDrawable.AnimationCallback
extends Object

java.lang.Object
   ↳ androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable.AnimationCallback


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

Summary

Public constructors

AnimationCallback()

Public methods

void onAnimationEnd(SeekableAnimatedVectorDrawable drawable)

Called when the animation ends.

void onAnimationPause(SeekableAnimatedVectorDrawable drawable)

Called when the animation is paused.

void onAnimationResume(SeekableAnimatedVectorDrawable drawable)

Called when the animation is resumed.

void onAnimationStart(SeekableAnimatedVectorDrawable drawable)

Called when the animation starts.

void onAnimationUpdate(SeekableAnimatedVectorDrawable drawable)

Called on every frame while the animation is running.

Inherited methods

Public constructors

AnimationCallback

public AnimationCallback ()

Public methods

onAnimationEnd

public void onAnimationEnd (SeekableAnimatedVectorDrawable drawable)

Called when the animation ends.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable finished the animation.

onAnimationPause

public void onAnimationPause (SeekableAnimatedVectorDrawable drawable)

Called when the animation is paused.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable.

onAnimationResume

public void onAnimationResume (SeekableAnimatedVectorDrawable drawable)

Called when the animation is resumed.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable.

onAnimationStart

public void onAnimationStart (SeekableAnimatedVectorDrawable drawable)

Called when the animation starts.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable started the animation.

onAnimationUpdate

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 SeekableAnimatedVectorDrawable: The drawable.