public void setRepeatMode(@LottieDrawable.RepeatMode int mode) {
    userActionsTaken.add(UserActionTaken.SET_REPEAT_MODE);
    lottieDrawable.setRepeatMode(mode);
  }
Defines what this animation should do when it reaches the end. This
setting is applied only when the repeat count is either greater than
0 or {@link LottieDrawable#INFINITE}. Defaults to {@link LottieDrawable#RESTART}.

@param mode {@link LottieDrawable#RESTART} or {@link LottieDrawable#REVERSE}
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java