Composable Function

rememberInfiniteTransition

Creates a InfiniteTransition that runs infinite child animations.

rememberInfiniteTransition

Source set: Common
@Composable
public fun rememberInfiniteTransition(label: String = "InfiniteTransition"): InfiniteTransition

Creates a InfiniteTransition that runs infinite child animations. Child animations can be added using InfiniteTransition.animateColor, InfiniteTransition.animateFloat, or InfiniteTransition.animateValue. Child animations will start running as soon as they enter the composition, and will not stop until they are removed from the composition.

Parameters

label A label for differentiating this animation from others in android studio.

rememberInfiniteTransition

Deprecated

rememberInfiniteTransition APIs now have a new label parameter added.

Source set: Common
@Composable
public fun rememberInfiniteTransition(): InfiniteTransition

Last updated: