public void setMaxProgress ( @ FloatRange ( from = 0f , to = 1f ) final float maxProgress ) { if ( composition == null ) { lazyCompositionTasks . add ( new LazyCompositionTask ( ) { @ Override public void run ( LottieComposition composition ) { setMaxProgress ( maxProgress ) ; } } ) ; return ; } setMaxFrame ( ( int ) MiscUtils . lerp ( composition . getStartFrame ( ) , composition . getEndFrame ( ) , maxProgress ) ) ; }
Sets the maximum progress that the animation will end at when playing or looping .