core-ktx / androidx.animation / android.animation.Animator / addListener

addListener

fun Animator.addListener(onEnd: (animator: Animator) -> Unit = null, onStart: (animator: Animator) -> Unit = null, onCancel: (animator: Animator) -> Unit = null, onRepeat: (animator: Animator) -> Unit = null): AnimatorListener

Add a listener to this Animator using the provided actions.