public boolean isAnimating() {
    // On some versions of Android, this is called from the LottieAnimationView constructor, before animator was created.
    // https://github.com/airbnb/lottie-android/issues/1430
    //noinspection ConstantConditions
    if (animator == null) {
      return false;
    }
    return animator.isRunning();
  }
Defines how many times the animation should repeat. The default value
is 0.

@return the number of times the animation should repeat, or {@link #INFINITE}
lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java