Function

getVelocityFromNanos

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

getVelocityFromNanos

Source set: 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: