isActive

open fun isActive(): Boolean(source)

Checks if the recoil animation is currently active.

An animation is considered active if it's either in the "pressed" state (meaning a press event has been initiated but not yet released) or if the underlying ValueAnimator is currently running.

Return

true if the animation is active, false otherwise.