createDeferredAnimation

@RestrictTo(value = [RestrictTo.Scope.LIBRARY])
@Composable
fun <S, T, V : AnimationVector> Transition<S>.createDeferredAnimation(typeConverter: TwoWayConverter<T, V>, label: String = "DeferredAnimation"): Transition.DeferredAnimation<T, V, S>

This creates a DeferredAnimation, which will not animate until it is set up using DeferredAnimation.animate. Once the animation is set up, it will animate from the currentState to targetState. If the Transition has already arrived at its target state at the time when the animation added, there will be no animation.

Parameters

typeConverter

A converter to convert any value of type T from/to an AnimationVector

label

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