Composable Function

rememberAnimatedVectorPainter

Creates and remembers a Painter to render an AnimatedImageVector.

rememberAnimatedVectorPainter

Source set: Android
@Composable
public fun rememberAnimatedVectorPainter(
    animatedImageVector: AnimatedImageVector,
    atEnd: Boolean,
): Painter

Creates and remembers a Painter to render an AnimatedImageVector. It renders the image either at the start or the end of all the animations depending on the atEnd. Changes to atEnd are animated.

Parameters

animatedImageVector An AnimatedImageVector object to be remembered and animated.
atEnd Whether the animated vector should be rendered at the end of all its animations.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: