TransitionKt

Added in 1.1.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.

doOnEnd

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.

doOnPause

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.

doOnStart

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.