🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

EnterExitState

EnterExitState contains the three states that are involved in the enter and exit transition of AnimatedVisibility.

Source set: Common
public enum class EnterExitState {
    /** The initial state of a custom enter animation in [AnimatedVisibility].. */
    PreEnter,

    /**
     * The `Visible` state is the target state of a custom *enter* animation, also the initial state
     * of a custom *exit* animation in [AnimatedVisibility].
     */
    Visible,

    /** Target state of a custom *exit* animation in [AnimatedVisibility]. */
    PostExit,
}

EnterExitState contains the three states that are involved in the enter and exit transition of AnimatedVisibility. More specifically, PreEnter and Visible defines the initial and target state of an enter transition, whereas Visible and PostExit are the initial and target state of an exit transition.

See blow for an example of custom enter/exit animation in AnimatedVisibility using Transition<EnterExitState> (i.e. AnimatedVisibilityScope.transition):

Members

PreEnter

Source set: Common
PreEnter

The initial state of a custom enter animation in AnimatedVisibility..

Visible

Source set: Common
Visible

The Visible state is the target state of a custom enter animation, also the initial state of a custom exit animation in AnimatedVisibility.

PostExit

Source set: Common
PostExit

Target state of a custom exit animation in AnimatedVisibility.

Content updated: