TargetAnimation

data class TargetAnimation
kotlin.Any
   ↳ androidx.animation.TargetAnimation

TargetAnimation class defines how to animate to a given target position.

Summary

Public constructors

<init>(target: Float, animation: AnimationBuilder<Float> = PhysicsBuilder())

TargetAnimation class defines how to animate to a given target position.

Properties

AnimationBuilder<Float>

The animation that will be used to animate to the target destination.

Float

Target position for the animation to animate to

Public constructors

<init>

TargetAnimation(
    target: Float,
    animation: AnimationBuilder<Float> = PhysicsBuilder())

TargetAnimation class defines how to animate to a given target position.

Parameters
target: Float Target position for the animation to animate to
animation: AnimationBuilder<Float> = PhysicsBuilder() The animation that will be used to animate to the target destination. This animation defaults to a Spring Animation unless specified.

Properties

animation

val animation: AnimationBuilder<Float>

The animation that will be used to animate to the target destination. This animation defaults to a Spring Animation unless specified.

target

val target: Float

Target position for the animation to animate to