AnimatedSpatialVisibilityScope

class AnimatedSpatialVisibilityScope : AnimatedVisibilityScope


This is the scope for the content of AnimatedSpatialVisibility. In this scope, direct and indirect children of AnimatedSpatialVisibility will be able to define their own enter/exit transitions using the built-in options via SubspaceModifier.animateEnterExit. They will also be able define custom enter/exit animations using the transition object. AnimatedSpatialVisibility will ensure both custom and built-in enter/exit animations finish before it considers itself idle, and subsequently removes its content in the case of exit.

Note: Custom enter/exit animations that are created independent of the AnimatedSpatialVisibilityScope.transition will have no guarantee to finish when exiting, as AnimatedSpatialVisibility would have no visibility of such animations.

Summary

Public properties

open Transition<EnterExitState>

Inherited functions

From androidx.compose.animation.AnimatedVisibilityScope
open Modifier
Modifier.animateEnterExit(
    enter: EnterTransition,
    exit: ExitTransition,
    label: String
)

Public functions

animateEnterExit

@Composable
fun SubspaceModifier.animateEnterExit(
    enter: SpatialEnterTransition = SpatialTransitionDefaults.DefaultEnter,
    exit: SpatialExitTransition = SpatialTransitionDefaults.DefaultExit
): SubspaceModifier

Public properties

transition

Added in 1.0.0-alpha09
open val transitionTransition<EnterExitState>