public sealed class SpatialExitTransition
SpatialExitTransition defines how an AnimatedSpatialVisibility Composable disappears on screen as it becomes not visible. The categories of SpatialExitTransition available are:
- fade: SpatialTransitions.fadeOut
- 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.
Functions
plus
public 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 | another SpatialExitTransition to be combined |
Companion Object
Properties
public val None: SpatialExitTransition
This can be used when no enter transition is desired.