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

AnimationCallback

abstract class AnimationCallback
kotlin.Any
   ↳ androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable.AnimationCallback

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

Summary

Public constructors

Abstract class for animation callback.

Public methods
open Unit

Called when the animation ends.

open Unit

Called when the animation is paused.

open Unit

Called when the animation is resumed.

open Unit

Called when the animation starts.

open Unit

Called on every frame while the animation is running.

Public constructors

<init>

AnimationCallback()

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

Public methods

onAnimationEnd

open fun onAnimationEnd(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation ends.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable finished the animation.

onAnimationPause

open fun onAnimationPause(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation is paused.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable.

onAnimationResume

open fun onAnimationResume(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation is resumed.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable.

onAnimationStart

open fun onAnimationStart(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation starts.

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable started the animation.

onAnimationUpdate

open fun onAnimationUpdate(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit

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

Parameters
drawable SeekableAnimatedVectorDrawable: The drawable.