isFinished

abstract fun isFinished(playTimeNanos: Long): Boolean

Returns whether the animation has reached its final state at the given elapsed time.

For tween animations, this is true when elapsed time exceeds the duration. For spring animations, this is true when displacement and velocity are both below the convergence threshold.

Return

true if the animation is complete.

Parameters

playTimeNanos

Elapsed time since the animation started, in nanoseconds.