SeekableAnimatedVectorDrawable.AnimationCallback


abstract class SeekableAnimatedVectorDrawable.AnimationCallback


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

Summary

Public constructors

Public functions

Unit

Called when the animation ends.

Unit

Called when the animation is paused.

Unit

Called when the animation is resumed.

Unit

Called when the animation starts.

Unit

Called on every frame while the animation is running.

Public constructors

AnimationCallback

Added in 1.0.0
AnimationCallback()

Public functions

onAnimationEnd

Added in 1.0.0
fun onAnimationEnd(drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation ends.

Parameters
drawable: SeekableAnimatedVectorDrawable

The drawable finished the animation.

onAnimationPause

Added in 1.0.0
fun onAnimationPause(drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation is paused.

Parameters
drawable: SeekableAnimatedVectorDrawable

The drawable.

onAnimationResume

Added in 1.0.0
fun onAnimationResume(drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation is resumed.

Parameters
drawable: SeekableAnimatedVectorDrawable

The drawable.

onAnimationStart

Added in 1.0.0
fun onAnimationStart(drawable: SeekableAnimatedVectorDrawable): Unit

Called when the animation starts.

Parameters
drawable: SeekableAnimatedVectorDrawable

The drawable started the animation.

onAnimationUpdate

Added in 1.0.0
fun onAnimationUpdate(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.