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

doOnCancel

fun Animator.doOnCancel(action: (animator: Animator) -> Unit): AnimatorListener

Add an action which will be invoked when the animation has been cancelled.

Return
the Animator.AnimatorListener added to the Animator

See Also

Animator.cancel