animateInteractionScaleAsState
Fire-and-forget animation function for Float. Using animateFloatAsState on the provided targetScale updating based on the current Interaction provided on the interactionSource.
animateInteractionScaleAsState returns a State object. The value of the state object will continuously be updated by the animation until the animation finishes.
Return
A State object, the value of which is updated by animation.
Since
0.2.0
Parameters
Target value of the animation.
The animation to provide based on the current Interaction that will be used to change the value through time.
An optional threshold for deciding when the animation value is considered close enough to the targetScale.
An optional label to differentiate from other animations in Android Studio.
An optional end listener to get notified when the animation is finished.