AnimatorListenerAdapter
abstract class AnimatorListenerAdapter : Animator.AnimatorListener, Animator.AnimatorPauseListener
| kotlin.Any | |
| ↳ | android.animation.AnimatorListenerAdapter | 
This adapter class provides empty implementations of the methods from android.animation.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 | |
|---|---|
| open Unit | onAnimationCancel(animation: Animator)Notifies the cancellation of the animation. | 
| open Unit | onAnimationEnd(animation: Animator)Notifies the end of the animation. | 
| open Unit | onAnimationPause(animation: Animator)Notifies that the animation was paused. | 
| open Unit | onAnimationRepeat(animation: Animator)Notifies the repetition of the animation. | 
| open Unit | onAnimationResume(animation: Animator)Notifies that the animation was resumed, after being previously paused. | 
| open Unit | onAnimationStart(animation: Animator)Notifies the start of the animation. | 
| Inherited functions | |
|---|---|
Public constructors
AnimatorListenerAdapter
AnimatorListenerAdapter()
Public methods
onAnimationCancel
open fun onAnimationCancel(animation: Animator): Unit
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. This value cannot be null. | 
onAnimationEnd
open fun onAnimationEnd(animation: Animator): Unit
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. This value cannot be null. | 
onAnimationPause
open fun onAnimationPause(animation: Animator): Unit
Notifies that the animation was paused.
| Parameters | |
|---|---|
| animation | Animator: The animaton being paused. This value cannot be null. | 
onAnimationRepeat
open fun onAnimationRepeat(animation: Animator): Unit
Notifies the repetition of the animation.
| Parameters | |
|---|---|
| animation | Animator: The animation which was repeated. This value cannot be null. | 
onAnimationResume
open fun onAnimationResume(animation: Animator): Unit
Notifies that the animation was resumed, after being previously paused.
| Parameters | |
|---|---|
| animation | Animator: The animation being resumed. This value cannot be null. | 
onAnimationStart
open fun onAnimationStart(animation: Animator): Unit
Notifies the start of the animation.
| Parameters | |
|---|---|
| animation | Animator: The started animation. This value cannot be null. | 
