SpatialEnterTransition

sealed class SpatialEnterTransition


SpatialEnterTransition defines how an AnimatedSpatialVisibility Composable appears on screen as it becomes visible. The categories of EnterTransitions available are:

  1. fade: SpatialTransitions.fadeIn

  2. slide: SpatialTransitions.slideIn, SpatialTransitions.slideInHorizontally, SpatialTransitions.slideInVertically, SpatialTransitions.slideInDepth

SpatialEnterTransition.None can be used when no enter transition is desired. Different SpatialEnterTransitions can be combined using SpatialEnterTransition.plus.

Note: SpatialTransitions.fadeIn and SpatialTransitions.slideIn do not affect the size of the AnimatedVisibility composable.

See also
EnterTransition

Summary

Public companion properties

SpatialEnterTransition

This can be used when no enter transition is desired.

Protected constructors

Public functions

operator SpatialEnterTransition

Combines different enter transitions.

Public companion properties

None

Added in 1.0.0-alpha09
val NoneSpatialEnterTransition

This can be used when no enter transition is desired.

See also
None

Protected constructors

SpatialEnterTransition

protected SpatialEnterTransition()

Public functions

plus

Added in 1.0.0-alpha09
operator fun plus(enter: SpatialEnterTransition): SpatialEnterTransition

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

Parameters
enter: SpatialEnterTransition

another SpatialEnterTransition to be combined