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 |
onAnimationCancel(@NonNull Animator animation)Notifies the cancellation of the animation. |
void |
onAnimationEnd(@NonNull Animator animation)Notifies the end of the animation. |
void |
onAnimationPause(@NonNull Animator animation)Notifies that the animation was paused. |
void |
onAnimationRepeat(@NonNull Animator animation)Notifies the repetition of the animation. |
void |
onAnimationResume(@NonNull Animator animation)Notifies that the animation was resumed, after being previously paused. |
void |
onAnimationStart(@NonNull Animator animation)Notifies the start of the animation. |
Inherited methods |
||||
|---|---|---|---|---|
|
Public constructors
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.