Class LottieRelativeIntegerValueCallback


  • public class LottieRelativeIntegerValueCallback
    extends LottieValueCallback<java.lang.Integer>
    LottieValueCallback that provides a value offset from the original animation rather than an absolute value.
    • Constructor Detail

      • LottieRelativeIntegerValueCallback

        public LottieRelativeIntegerValueCallback()
    • Method Detail

      • getValue

        public java.lang.Integer getValue​(LottieFrameInfo<java.lang.Integer> frameInfo)
        Description copied from class: LottieValueCallback
        Override this if you haven't set a static value in the constructor or with setValue. Return null to resort to the default value.
        Overrides:
        getValue in class LottieValueCallback<java.lang.Integer>
      • getOffset

        public java.lang.Integer getOffset​(LottieFrameInfo<java.lang.Integer> frameInfo)
        Override this to provide your own offset on every frame.