-animated-content.md 1.7 KB

//tvlib/org.mjdev.tvlib.ui.components.immersivelist/ImmersiveListBackgroundScope/AnimatedContent

AnimatedContent

[androidJvm]

@Composable

fun AnimatedContent(targetState: Int, modifier: Modifier = Modifier, transitionSpec: AnimatedContentTransitionScope<Int>.() -> ContentTransform = {

        ImmersiveListDefaults.EnterTransition.togetherWith(ImmersiveListDefaults.ExitTransition)
    }, contentAlignment: [Alignment](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.html) = Alignment.TopStart, label: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) = &quot;AnimatedContent&quot;, content: @[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)[AnimatedVisibilityScope](https://developer.android.com/reference/kotlin/androidx/compose/animation/AnimatedVisibilityScope.html).(targetState: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))