Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A handle to a declared animation constructor.

Link copied to clipboard
Link copied to clipboard

Returns a common source from either snapshot, or null for independent item selection. Input cycles without a stack change receive the same stack as both snapshots. The source must have a cycle context, including a removal context when departing.

Link copied to clipboard

Implements AnimationBuilder so all standard animation extensions (animateFloat, animateOffset, animateColor, etc.) can be called directly in the class body, automatically registering into this animation.

Link copied to clipboard
@RequiresOptIn(message = "`animateTo` bypasses the registered animations system. You are responsible for animating all registered values manually, otherwise they will remain frozen.", level = RequiresOptIn.Level.WARNING)
annotation class DelicateAnimationBuilderAnimationCall
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun <Context, T, V : AnimationVector> AnimationBuilder<Context>.animate(converter: TwoWayConverter<T, V>, zeroVelocity: T, spec: Context.() -> AnimationSpec<T> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, initialValue: () -> T = { zeroVelocity }, value: Context.() -> T): TargetableMutableAnimatedValue<T, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateColor(spec: Context.() -> AnimationSpec<Color> = { spring() }, colorSpace: ColorSpace = ColorSpaces.Srgb, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> Color = { Color.Transparent }): TargetableMutableAnimatedValue<Color, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateDp(spec: Context.() -> AnimationSpec<Dp> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> Dp = { 0.dp }): TargetableMutableAnimatedValue<Dp, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateDpOffset(spec: Context.() -> AnimationSpec<DpOffset> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> DpOffset = { DpOffset.Zero }): TargetableMutableAnimatedValue<DpOffset, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateDpSize(spec: Context.() -> AnimationSpec<DpSize> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> DpSize = { DpSize.Zero }): TargetableMutableAnimatedValue<DpSize, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateFloat(spec: Context.() -> AnimationSpec<Float> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> Float = { 0f }): TargetableMutableAnimatedValue<Float, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateInt(spec: Context.() -> AnimationSpec<Int> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> Int = { 0 }): TargetableMutableAnimatedValue<Int, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateIntOffset(spec: Context.() -> AnimationSpec<IntOffset> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> IntOffset = { IntOffset.Zero }): TargetableMutableAnimatedValue<IntOffset, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateIntSize(spec: Context.() -> AnimationSpec<IntSize> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> IntSize = { IntSize.Zero }): TargetableMutableAnimatedValue<IntSize, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateOffset(spec: Context.() -> AnimationSpec<Offset> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> Offset = { Offset.Zero }): TargetableMutableAnimatedValue<Offset, Context>
Link copied to clipboard
fun <Context> AnimationBuilder<Context>.animateSize(spec: Context.() -> AnimationSpec<Size> = { spring() }, stopOnTargetReached: Context.() -> Boolean? = null, value: Context.() -> Size = { Size.Zero }): TargetableMutableAnimatedValue<Size, Context>
Link copied to clipboard

Chooses and delegates once at each cycle's existing selection point.

Link copied to clipboard

Selects from the target stack. Empty target stacks have no common source.

Link copied to clipboard
Link copied to clipboard