Package 

Class CompositionLayer

  • All Implemented Interfaces:
    com.airbnb.lottie.animation.content.Content , com.airbnb.lottie.animation.content.DrawingContent , com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.AnimationListener , com.airbnb.lottie.model.KeyPathElement

    
    public class CompositionLayer
    extends BaseLayer
                        
    • Method Summary

      Modifier and Type Method Description
      float getProgress()
      void setProgress(@FloatRange(from = 0f, to = 1f) float progress)
      void setClipToCompositionBounds(boolean clipToCompositionBounds)
      void setOutlineMasksAndMattes(boolean outline) Enable this to debug slow animations by outlining masks and mattes.
      void getBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents)
      boolean hasMasks()
      boolean hasMatte()
      <T> void addValueCallback(T property, @Nullable() LottieValueCallback<T> callback) The overridden method should handle appropriate properties and set value callbacks on theiranimations.
      • Methods inherited from class com.airbnb.lottie.model.layer.BaseLayer

        addAnimation, draw, getBlendMode, getBlurEffect, getBlurMaskFilter, getBounds, getDropShadowEffect, getName, onValueChanged, removeAnimation, resolveKeyPath, setContents
      • Methods inherited from class com.airbnb.lottie.animation.content.DrawingContent

        draw
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait