TransitionKt

public final class TransitionKt


Summary

Public methods

static final @RequiresApi(value = "19") @NonNull Transition.TransitionListener
TransitionKt.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 @RequiresApi(value = "19") @NonNull Transition.TransitionListener
TransitionKt.doOnCancel(
    @NonNull Transition receiver,
    @NonNull Function1<@NonNull 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(
    @NonNull Transition receiver,
    @NonNull Function1<@NonNull TransitionUnit> action
)

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

static final @RequiresApi(value = "19") @NonNull Transition.TransitionListener
TransitionKt.doOnPause(
    @NonNull Transition receiver,
    @NonNull Function1<@NonNull 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(
    @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 @RequiresApi(value = "19") @NonNull Transition.TransitionListener
TransitionKt.doOnStart(
    @NonNull Transition receiver,
    @NonNull Function1<@NonNull TransitionUnit> action
)

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

Public methods

TransitionKt.addListener

@RequiresApi(value = "19")
@NonNull
public static final @RequiresApi(value = "19") Transition.TransitionListener TransitionKt.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.

TransitionKt.doOnCancel

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

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

TransitionKt.doOnEnd

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

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

TransitionKt.doOnPause

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

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

TransitionKt.doOnResume

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

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

TransitionKt.doOnStart

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

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