TransitionKt

Added in 1.4.0

public final class TransitionKt


Summary

Public methods

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

Add a listener to this Transition using the provided actions.

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

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

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

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

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

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

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

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

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

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

Public methods

addListener

public static final @NonNull Transition.TransitionListener addListener(
    @NonNull Transition receiver,
    @NonNull Function1<@NonNull TransitionUnit> onEnd,
    @NonNull Function1<@NonNull TransitionUnit> onStart,
    @NonNull Function1<@NonNull TransitionUnit> onCancel,
    @NonNull Function1<@NonNull TransitionUnit> onResume,
    @NonNull Function1<@NonNull TransitionUnit> onPause
)

Add a listener to this Transition using the provided actions.

doOnCancel

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

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

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

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

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

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

doOnResume

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

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

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

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