SeekableAnimatedVectorDrawable.AnimationCallback


public abstract class SeekableAnimatedVectorDrawable.AnimationCallback


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

Summary

Public constructors

Public methods

void

Called when the animation ends.

void

Called when the animation is paused.

void

Called when the animation is resumed.

void

Called when the animation starts.

void

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
public void onAnimationEnd(@NonNull SeekableAnimatedVectorDrawable drawable)

Called when the animation ends.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable finished the animation.

onAnimationPause

Added in 1.0.0
public void onAnimationPause(@NonNull SeekableAnimatedVectorDrawable drawable)

Called when the animation is paused.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable.

onAnimationResume

Added in 1.0.0
public void onAnimationResume(@NonNull SeekableAnimatedVectorDrawable drawable)

Called when the animation is resumed.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable.

onAnimationStart

Added in 1.0.0
public void onAnimationStart(@NonNull SeekableAnimatedVectorDrawable drawable)

Called when the animation starts.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable started the animation.

onAnimationUpdate

Added in 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 AnimationCallback here.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable.

With the ability to publish rapidly to over 2 billion active Android devices, Google Play helps you grow a global audience for your apps and games and earn revenue.

Updated Feb 10, 2025

With the ability to publish rapidly to over 2 billion active Android devices, Google Play helps you grow a global audience for your apps and games and earn revenue.

Updated Feb 10, 2025

Discover what's new in Android Studio Ladybug.

Updated Jan 9, 2025