TransitionKt

public final class TransitionKt


Summary

Public methods

static final @RequiresApi(value = 19) @NonNull Transition.TransitionListener
TransitionKt.addListener(
    Transition receiver,
    Function1<TransitionUnit> onEnd,
    Function1<TransitionUnit> onStart,
    Function1<TransitionUnit> onCancel,
    Function1<TransitionUnit> onResume,
    Function1<TransitionUnit> onPause
)

Add a listener to this Transition using the provided actions.

static final @RequiresApi(value = 19) @NonNull Transition.TransitionListener
TransitionKt.doOnCancel(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

static final @RequiresApi(value = 19) @NonNull Transition.TransitionListener
TransitionKt.doOnEnd(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

static final @RequiresApi(value = 19) @NonNull Transition.TransitionListener
TransitionKt.doOnPause(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

static final @RequiresApi(value = 19) @NonNull Transition.TransitionListener
TransitionKt.doOnResume(
    Transition receiver,
    Function1<TransitionUnit> action
)

Add an action which will be invoked when this transition has resumed after a pause.

static final @RequiresApi(value = 19) @NonNull Transition.TransitionListener
TransitionKt.doOnStart(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

Public methods

TransitionKt.addListener

@RequiresApi(value = 19)
public static final @NonNull Transition.TransitionListener TransitionKt.addListener(
  &nb