core-ktx / androidx.transition / android.transition.Transition / doOnCancel

doOnCancel

fun Transition.doOnCancel(action: (transition: Transition) -> Unit): Unit

Add an action which will be invoked when this transition has been cancelled.