Class LottieComposition

    • Constructor Detail

      • LottieComposition

        public LottieComposition()
    • Method Detail

      • init

        public void init​(Rect bounds,
                         float startFrame,
                         float endFrame,
                         float frameRate,
                         java.util.List<Layer> layers,
                         androidx.collection.LongSparseArray<Layer> layerMap,
                         java.util.Map<java.lang.String,​java.util.List<Layer>> precomps,
                         java.util.Map<java.lang.String,​LottieImageAsset> images,
                         androidx.collection.SparseArrayCompat<FontCharacter> characters,
                         java.util.Map<java.lang.String,​Font> fonts,
                         java.util.List<Marker> markers)
      • addWarning

        public void addWarning​(java.lang.String warning)
      • setHasDashPattern

        public void setHasDashPattern​(boolean hasDashPattern)
      • incrementMatteOrMaskCount

        public void incrementMatteOrMaskCount​(int amount)
      • hasDashPattern

        public boolean hasDashPattern()
        Used to determine if an animation can be drawn with hardware acceleration.
      • getMaskAndMatteCount

        public int getMaskAndMatteCount()
        Used to determine if an animation can be drawn with hardware acceleration.
      • getWarnings

        public java.util.ArrayList<java.lang.String> getWarnings()
      • setPerformanceTrackingEnabled

        public void setPerformanceTrackingEnabled​(boolean enabled)
      • layerModelForId

        public Layer layerModelForId​(long id)
      • getBounds

        public Rect getBounds()
      • getDuration

        public float getDuration()
      • getStartFrame

        public float getStartFrame()
      • getEndFrame

        public float getEndFrame()
      • getFrameRate

        public float getFrameRate()
      • getLayers

        public java.util.List<Layer> getLayers()
      • getPrecomps

        @Nullable
        public java.util.List<Layer> getPrecomps​(java.lang.String id)
      • getCharacters

        public androidx.collection.SparseArrayCompat<FontCharacter> getCharacters()
      • getFonts

        public java.util.Map<java.lang.String,​Font> getFonts()
      • getMarkers

        public java.util.List<Marker> getMarkers()
      • getMarker

        @Nullable
        public Marker getMarker​(java.lang.String markerName)
      • hasImages

        public boolean hasImages()
      • getImages

        public java.util.Map<java.lang.String,​LottieImageAsset> getImages()
      • getDurationFrames

        public float getDurationFrames()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object