Start native apps faster with the Composables CLI ->
Class

SpatialEnterTransition

SpatialEnterTransition defines how an AnimatedSpatialVisibility Composable appears on screen as it becomes visible.

Source set: Android
public 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. SpatialTransitions.slideInVertically, SpatialTransitions.slideInDepth

  3. slide: SpatialTransitions.slideIn, SpatialTransitions.slideInHorizontally,

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.

Functions

plus

Source set: Android
public 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 another SpatialEnterTransition to be combined

Members

Companion

Source set: Android
public companion object

Properties

None

Source set: Android
public val None: SpatialEnterTransition = Impl(SpatialTransitionData())

This can be used when no enter transition is desired.