transitionx / in.arunkumarsampath.transitionx.transition / TransitionBuilder / 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 actions at different stages of Transition. Repeated blocks does not override previously added block but instead run one after another.

See Also

Transition.addListener