private void terminateAnimation() {
        if (mState == AnimationState.SCHEDULED) {
            mMainLoopHandler.removeCallbacks(mDelayedRunner);
        }
        else if (mState == AnimationState.RUNNING || mState == AnimationState.PAUSED) {
            if (mExecutableAnimation != null) {
                mExecutableAnimation.terminate(true);
            }
        }
        mState = AnimationState.TERMINATED;
    }
This method terminates any scheduled, running or paused animation and sets the state to
terminated.
android/viro_bridge/src/main/java/com/viromedia/bridge/component/VRTManagedAnimation.java