-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description private floatprogressprivate booleanclipToCompositionBounds
-
Constructor Summary
Constructors Constructor Description CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, List<Layer> layerModels, LottieComposition composition)
-
Method Summary
Modifier and Type Method Description floatgetProgress()voidsetProgress(@FloatRange(from = 0f, to = 1f) float progress)voidsetClipToCompositionBounds(boolean clipToCompositionBounds)voidsetOutlineMasksAndMattes(boolean outline)Enable this to debug slow animations by outlining masks and mattes. voidgetBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents)booleanhasMasks()booleanhasMatte()<T> voidaddValueCallback(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
-
-
Constructor Detail
-
CompositionLayer
CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, List<Layer> layerModels, LottieComposition composition)
-
-
Method Detail
-
getProgress
float getProgress()
-
setProgress
void setProgress(@FloatRange(from = 0f, to = 1f) float progress)
-
setClipToCompositionBounds
void setClipToCompositionBounds(boolean clipToCompositionBounds)
-
setOutlineMasksAndMattes
void setOutlineMasksAndMattes(boolean outline)
Enable this to debug slow animations by outlining masks and mattes. The performance overhead of the masks and mattes willbe proportional to the surface area of all of the masks/mattes combined.
DO NOT leave this enabled in production.
-
hasMasks
boolean hasMasks()
-
hasMatte
boolean hasMatte()
-
addValueCallback
<T> void addValueCallback(T property, @Nullable() LottieValueCallback<T> callback)
The overridden method should handle appropriate properties and set value callbacks on theiranimations.
-
-
-
-