{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AnimatedImageVector

@ExperimentalAnimationGraphicsApi
public final class AnimatedImageVector


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.

Summary

Nested types

public static class AnimatedImageVector.Companion

Provide an empty companion object to hang platform-specific companion extensions onto.

Public methods

final @NonNull ImageVector

The ImageVector to be animated.

final int

The total duration of all the animations in this image, including start delays and repeats.

Public methods

getImageVector

public final @NonNull ImageVector getImageVector()

The ImageVector to be animated. This is represented with the android:drawable parameter of an <animated-vector> element.

getTotalDuration

public final int getTotalDuration()

The total duration of all the animations in this image, including start delays and repeats.