animate
DeferredAnimation allows the animation setup to be deferred until a later time after composition. animate can be used to set up a DeferredAnimation. Like other Transition animations such as Transition.animateFloat, DeferredAnimation also expects transitionSpec and targetValueByState for the mapping from target state to animation spec and target value, respectively.
DeferredAnimation allows the animation setup to be deferred until a later time after composition. animate can be used to set up a DeferredAnimation. Like other Transition animations such as Transition.animateFloat, DeferredAnimation also expects transitionSpec and targetValueByState for the mapping from target state to animation spec and target value, respectively.
This overload of animate also allows forcing an initial value and/or velocity for the animation, which is useful for handoff from a manual deferred phase to the automatic transition phase.
Parameters
mapping from segment to animation spec
optional initial value to use for the animation, instead of the current value
optional initial velocity to use for the animation
mapping from target state to target value