Function

getVelocityFromNanos

Returns the velocity of the animation at the given play time.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

Overload 1

Common
public fun <T, V : AnimationVector> Animation<T, V>.getVelocityFromNanos(playTimeNanos: Long): T

Returns the velocity of the animation at the given play time.

Parameters

playTimeNanos the play time that is used to calculate the velocity of the animation.