public void setFrame(float frame) {
    if (this.frameRaw == frame) {
      return;
    }
    this.frameRaw = MiscUtils.clamp(frame, getMinFrame(), getMaxFrame());
    this.frame = useCompositionFrameRate ? ((float) Math.floor(frameRaw)) : frameRaw;
    lastFrameTimeNs = 0;
    notifyUpdate();
  }
Returns the current value of the currently playing animation taking into
account direction, min and max frames.
lottie/src/main/java/com/airbnb/lottie/utils/LottieValueAnimator.java