Source set: Common
public class AnimatedImageVector internal constructor(
public val imageVector: ImageVector,
// The list of [AnimatedVectorTarget]s that specify animations for each of the elements in the
// drawable. This is represented with `<target>` elements in `<animated-vector>`. This list is
// expected to be *immutable*.
internal val targets: List<AnimatedVectorTarget>,
)
Animated vector graphics object that is generated as a result of androidx.compose.animation.graphics.res.loadAnimatedVectorResource. It can be composed and rendered by rememberAnimatedVectorPainter.
Parameters
| imageVector | The ImageVector to be animated. This is represented with the android:drawable parameter of an <animated-vector> element. |
Properties
totalDuration
Source set: Common
public val totalDuration: Int =
targets.fastMaxBy { it.animator.totalDuration }?.animator?.totalDuration ?: 0
The total duration of all the animations in this image, including start delays and repeats.
Members
Companion
Source set: Common
public companion object
Provide an empty companion object to hang platform-specific companion extensions onto.