AnimatorListenerAdapter
public
abstract
class
AnimatorListenerAdapter
extends Object
implements
Animator.AnimatorListener,
Animator.AnimatorPauseListener
java.lang.Object | |
↳ | androidx.core.animation.AnimatorListenerAdapter |
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 | |
---|---|
AnimatorListenerAdapter()
|
Public methods | |
---|---|
void
|
onAnimationCancel(Animator animation)
Notifies the cancellation of the animation. |
void
|
onAnimationEnd(Animator animation)
Notifies the end of the animation. |
void
|
onAnimationPause(Animator animation)
Notifies that the animation was paused. |
void
|
onAnimationRepeat(Animator animation)
Notifies the repetition of the animation. |
void
|
onAnimationResume(Animator animation)
Notifies that the animation was resumed, after being previously paused. |
void
|
onAnimationStart(Animator animation)
Notifies the start of the animation. |
Inherited methods | |
---|---|
Public constructors
AnimatorListenerAdapter
public AnimatorListenerAdapter ()
Public methods
onAnimationCancel
public void onAnimationCancel (Animator animation)
Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
Parameters | |
---|---|
animation |
Animator : The animation which was canceled.
|
onAnimationEnd
public void onAnimationEnd (Animator animation)
Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
Parameters | |
---|---|
animation |
Animator : The animation which reached its end.
|
onAnimationPause
public void onAnimationPause (Animator animation)
Notifies that the animation was paused.
Parameters | |
---|---|
animation |
Animator : The animaton being paused. |
onAnimationRepeat
public void onAnimationRepeat (Animator animation)
Notifies the repetition of the animation.
Parameters | |
---|---|
animation |
Animator : The animation which was repeated
|
onAnimationResume
public void onAnimationResume (Animator animation)
Notifies that the animation was resumed, after being previously paused.
Parameters | |
---|---|
animation |
Animator : The animation being resumed. |
onAnimationStart
public void onAnimationStart (Animator animation)
Notifies the start of the animation.
Parameters | |
---|---|
animation |
Animator : The started animation.
|