{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AnimatedContentScope

public sealed interface AnimatedContentScope extends AnimatedVisibilityScope


Receiver scope for content lambda for AnimatedContent. In this scope, transition can be used to observe the state of the transition, or to add more enter/exit transition for the content.

Summary

Inherited methods

From androidx.compose.animation.AnimatedVisibilityScope
default @NonNull Modifier

animateEnterExit modifier can be used for any direct or indirect children of AnimatedVisibility to create a different enter/exit animation than what's specified in AnimatedVisibility.

abstract @NonNull Transition<@NonNull EnterExitState>

transition allows custom enter/exit animations to be specified.