AnimatorListenerAdapter

public abstract class AnimatorListenerAdapter implements Animator.AnimatorListener, Animator.AnimatorPauseListener


This adapter class provides empty implementations of the methods from Animator.AnimatorListener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly.

Summary

Public constructors

Public methods

void

Notifies the cancellation of the animation.

void

Notifies the end of the animation.

void

Notifies that the animation was paused.

void

Notifies the repetition of the animation.

void

Notifies that the animation was resumed, after being previously paused.

void

Notifies the start of the animation.

Inherited methods

From androidx.core.animation.Animator.AnimatorListener
void
onAnimationEnd(@NonNull Animator animation, boolean isReverse)

Notifies the end of the animation.

void
onAnimationStart(@NonNull Animator animation, boolean isReverse)

Notifies the start of the animation as well as the animation's overall play direction.

Public constructors

AnimatorListenerAdapter

public AnimatorListenerAdapter()

Public methods

onAnimationCancel

public void onAnimationCancel(@NonNull Animator animation)

Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

onAnimationEnd

public void onAnimationEnd(@NonNull Animator animation)

Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

onAnimationPause

public void onAnimationPause(@NonNull Animator animation)

Notifies that the animation was paused.

onAnimationRepeat

public void onAnimationRepeat(@NonNull Animator animation)

Notifies the repetition of the animation.

onAnimationResume

public void onAnimationResume(@NonNull Animator animation)

Notifies that the animation was resumed, after being previously paused.

onAnimationStart

public void onAnimationStart(@NonNull Animator animation)

Notifies the start of the animation.