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

Notifies the cancellation of the animation.

Unit

Notifies the end of the animation.

Unit

Notifies that the animation was paused.

Unit

Notifies the repetition of the animation.

Unit

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

Unit

Notifies the start of the animation.

Inherited functions

From androidx.core.animation.Animator.AnimatorListener
Unit
onAnimationEnd(animation: Animator, isReverse: Boolean)

Notifies the end of the animation.

Unit
onAnimationStart(animation: Animator, isReverse: Boolean)

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

Public constructors

AnimatorListenerAdapter

AnimatorListenerAdapter()

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.