Package 

Interface RepeatAnimationCallback


  • 
    public interface RepeatAnimationCallback
    
                        

    This interface is for receiving callback when animation is about to be repeated.

    • Method Summary

      Modifier and Type Method Description
      Unit onRepeat(ApngDrawable drawable, Integer nextLoop) This is called when animation is about to be repeated.
      Unit onAnimationRepeat(ApngDrawable drawable, Integer nextLoopIndex) This is called when animation is about to be repeated.
      • Methods inherited from class com.linecorp.apng.RepeatAnimationCallback

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onRepeat

        @Deprecated(message = "Use onAnimationRepeat", replaceWith = @ReplaceWith(imports = {}, expression = "")) Unit onRepeat(ApngDrawable drawable, Integer nextLoop)

        This is called when animation is about to be repeated.

        Parameters:
        nextLoop - loop count of the next animation.
      • onAnimationRepeat

         Unit onAnimationRepeat(ApngDrawable drawable, Integer nextLoopIndex)

        This is called when animation is about to be repeated.

        TODO: This function has a default implementation for backward compatibility. It will be removed at the next version.

        Parameters:
        nextLoopIndex - loop index of the next animation.