AnimatorListenerAdapter
abstract class AnimatorListenerAdapter : 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 functions |
|
|---|---|
Unit |
onAnimationCancel(animation: Animator)Notifies the cancellation of the animation. |
Unit |
onAnimationEnd(animation: Animator)Notifies the end of the animation. |
Unit |
onAnimationPause(animation: Animator)Notifies that the animation was paused. |
Unit |
onAnimationRepeat(animation: Animator)Notifies the repetition of the animation. |
Unit |
onAnimationResume(animation: Animator)Notifies that the animation was resumed, after being previously paused. |
Unit |
onAnimationStart(animation: Animator)Notifies the start of the animation. |
Inherited functions |
||||
|---|---|---|---|---|
|
Public constructors
Public functions
onAnimationCancel
fun onAnimationCancel(animation: Animator): Unit
Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
onAnimationEnd
fun onAnimationEnd(animation: Animator): Unit
Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
onAnimationPause
fun onAnimationPause(animation: Animator): Unit
Notifies that the animation was paused.
onAnimationRepeat
fun onAnimationRepeat(animation: Animator): Unit
Notifies the repetition of the animation.
onAnimationResume
fun onAnimationResume(animation: Animator): Unit
Notifies that the animation was resumed, after being previously paused.
onAnimationStart
fun onAnimationStart(animation: Animator): Unit
Notifies the start of the animation.