TransitionKt

public final class TransitionKt


Summary

Public methods

static final @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 @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 @NonNull Transition.TransitionListener
TransitionKt.doOnEnd(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

static final @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 @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 @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

public static final @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.

TransitionKt.doOnCancel

public static final @NonNull Transition.TransitionListener TransitionKt.doOnCancel(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

TransitionKt.doOnEnd

public static final @NonNull Transition.TransitionListener TransitionKt.doOnEnd(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

TransitionKt.doOnPause

public static final @NonNull Transition.TransitionListener TransitionKt.doOnPause(
    Transition receiver,
    Function1<TransitionUnit> action
)

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

TransitionKt.doOnResume

public static final @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.

TransitionKt.doOnStart

public static final @NonNull Transition.TransitionListener TransitionKt.doOnStart(
    Transition receiver,
    Function1<TransitionUnit> action
)

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