androidx.compose.animation
Classes
AnimatedFloatModel |
Model class for AnimatedFloat. |
AnimatedValueModel |
Model class for AnimatedValue. |
ColorPropKey |
Built-in property key for Color properties. |
DisposableAnimationClock |
Clock that remembers all of its active subscriptions so that it can dispose of upstream subscriptions. |
DpPropKey |
Built-in property key for Dp properties. |
EnterTransition |
EnterTransition defines how an AnimatedVisibility Composable appears on screen as it becomes visible. |
ExitTransition |
ExitTransition defines how an AnimatedVisibility Composable disappears on screen as it becomes not visible. |
OffsetPropKey |
Built-in property key for Offset properties. |
PxPropKey |
Built-in property key for pixel properties. |
RectPropKey |
Built-in property key for Rect properties. |
Annotations
ExperimentalAnimationApi |
Top-level functions summary
Animatable<Color, AnimationVector4D> |
Animatable(initialValue: Color) This Animatable function creates a Color value holder that automatically animates its value when the value is changed via animateTo. |
Unit |
AnimatedVisibility(visible: Boolean, modifier: Modifier = Modifier, enter: EnterTransition = fadeIn() + expandIn(), exit: ExitTransition = shrinkOut() + fadeOut(), initiallyVisible: Boolean = visible, content: () -> Unit) AnimatedVisibility composable animates the appearance and disappearance of its content, as visible value changes. |
Unit |
Crossfade(current: T, modifier: Modifier = Modifier, animation: AnimationSpec<Float> = tween(), content: (T) -> Unit) Crossfade allows to switch between two layouts with a crossfade animation. |
Float |
animate(target: Float, animSpec: AnimationSpec<Float> = defaultAnimation, visibilityThreshold: Float = 0.01f, endListener: (Float) -> Unit = null) Fire-and-forget animation Composable for Float. |
Color |
animate(target: Color, animSpec: AnimationSpec<Color> = remember { spring() }, endListener: (Color) -> Unit = null) Fire-and-forget animation Composable for Color. |
Dp |
animate(target: Dp, animSpec: AnimationSpec<Dp> = remember {
spring(visibilityThreshold = Dp.VisibilityThreshold)
}, endListener: (Dp) -> Unit = null) Fire-and-forget animation Composable for Dp. |
Position |
animate(target: Position, animSpec: AnimationSpec<Position> = remember {
spring(visibilityThreshold = Position.VisibilityThreshold)
}, endListener: (Position) -> Unit = null) Fire-and-forget animation Composable for Position. |
Size |
animate(target: Size, animSpec: AnimationSpec<Size> = remember {
spring(visibilityThreshold = Size.VisibilityThreshold)
}, endListener: (Size) -> Unit = null) Fire-and-forget animation Composable for Size. |
Bounds |
animate(target: Bounds, animSpec: AnimationSpec<Bounds> = remember {
spring(visibilityThreshold = Bounds.VisibilityThreshold)
}, endListener: (Bounds) -> Unit = null) Fire-and-forget animation Composable for Bounds. |
Offset |
animate(target: Offset, animSpec: AnimationSpec<Offset> = remember {
spring(visibilityThreshold = Offset.VisibilityThreshold)
}, endListener: (Offset) -> Unit = null) Fire-and-forget animation Composable for Offset. |
Rect |
animate(target: Rect, animSpec: AnimationSpec<Rect> = remember {
spring(visibilityThreshold = Rect.VisibilityThreshold)
}, endListener: (Rect) -> Unit = null) Fire-and-forget animation Composable for Rect. |
Int |
animate(target: Int, animSpec: AnimationSpec<Int> = remember { spring(visibilityThreshold = 1) }, endListener: (Int) -> Unit = null) Fire-and-forget animation Composable for Int. |
IntOffset |
animate(target: IntOffset, animSpec: AnimationSpec<IntOffset> = remember {
spring(visibilityThreshold = IntOffset.VisibilityThreshold)
}, endListener: (IntOffset) -> Unit = null) Fire-and-forget animation Composable for IntOffset. |
IntSize |