public float getMaxFrame() {
    return lottieDrawable.getMaxFrame();
  }
Returns the maximum frame set by {@link #setMaxFrame(int)} or {@link #setMaxProgress(float)}
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java