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

addListener

fun Transition.addListener(onEnd: (transition: Transition) -> Unit = null, onStart: (transition: Transition) -> Unit = null, onCancel: (transition: Transition) -> Unit = null, onResume: (transition: Transition) -> Unit = null, onPause: (transition: Transition) -> Unit = null): Unit

Add a listener to this Transition using the provided actions.