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-rc01
public AnimationCallback()

Public methods

onAnimationEnd

Added in 1.0.0-rc01
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-rc01
public void onAnimationPause(@NonNull SeekableAnimatedVectorDrawable drawable)

Called when the animation is paused.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable.

onAnimationResume

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

Called when the animation is resumed.

Parameters
@NonNull SeekableAnimatedVectorDrawable drawable

The drawable.

onAnimationStart

Added in 1.0.0-rc01
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-rc01
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.