mosaic
Toggle table of contents
0.22.0
common
Target filter
common
Switch theme
Search in API
Skip to content
mosaic
mosaic-animation
/
org.unitedsoftware.mosaic.animation
/
estimateAnimationDurationMillis
estimate
Animation
Duration
Millis
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY
]
)
fun
estimateAnimationDurationMillis
(
stiffness
:
Float
,
dampingRatio
:
Float
,
initialVelocity
:
Float
,
initialDisplacement
:
Float
,
delta
:
Float
)
:
Long
Returns the estimated time that the spring will last be at
delta