SpatialExitTransition

sealed class SpatialExitTransition


SpatialExitTransition defines how an AnimatedSpatialVisibility Composable disappears on screen as it becomes not visible. The categories of SpatialExitTransition available are:

  1. fade: SpatialTransitions.fadeOut

  2. slide: SpatialTransitions.slideOut, SpatialTransitions.slideOutHorizontally, SpatialTransitions.slideOutVertically, SpatialTransitions.slideOutDepth

SpatialExitTransition.None can be used when no exit transition is desired. Different SpatialExitTransitions can be combined using SpatialExitTransition.plus.

Note: SpatialTransitions.fadeOut and SpatialTransitions.slideOut do not affect the size of the AnimatedSpatialVisibility composable.

See also
ExitTransition

Summary

Public companion properties

SpatialExitTransition

This can be used when no enter transition is desired.

Protected constructors

Public functions

operator SpatialExitTransition

Combines different exit transitions.

Public companion properties

None

Added in 1.0.0-alpha09
val NoneSpatialExitTransition

This can be used when no enter transition is desired.

See also
None

Protected constructors

SpatialExitTransition

protected SpatialExitTransition()

Public functions

plus

Added in 1.0.0-alpha09
operator fun plus(exit: SpatialExitTransition): SpatialExitTransition

Combines different exit transitions. The order of the SpatialExitTransitions being combined does not matter, as these SpatialExitTransitions will start simultaneously. The order of applying transforms from these exit transitions (if defined) is: alpha and scale first, shrink or expand, then slide.

Parameters
exit: SpatialExitTransition

another SpatialExitTransition to be combined