-
- 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 abstract class BaseLayer implements DrawingContent, BaseKeyframeAnimation.AnimationListener, KeyPathElement
-
-
Field Summary
Fields Modifier and Type Field Description public final TransformKeyframeAnimationtransformBlurMaskFilterblurMaskFilter
-
Method Summary
Modifier and Type Method Description BlurMaskFiltergetBlurMaskFilter(float radius)BlurMaskFiltergetBlurMaskFilter(float radius)voidonValueChanged()voidaddAnimation(@Nullable() BaseKeyframeAnimation<out Object, out Object> newAnimation)voidremoveAnimation(BaseKeyframeAnimation<out Object, out Object> animation)voidgetBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents)voiddraw(Canvas canvas, Matrix parentMatrix, int parentAlpha, @Nullable() DropShadow shadowToApply)StringgetName()BlurEffectgetBlurEffect()LBlendModegetBlendMode()DropShadowEffectgetDropShadowEffect()voidsetContents(List<Content> contentsBefore, List<Content> contentsAfter)voidresolveKeyPath(KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath)Called recursively during keypath resolution. <T> voidaddValueCallback(T property, @Nullable() LottieValueCallback<T> callback)The overridden method should handle appropriate properties and set value callbacks on theiranimations. -
-
Method Detail
-
getBlurMaskFilter
BlurMaskFilter getBlurMaskFilter(float radius)
-
getBlurMaskFilter
BlurMaskFilter getBlurMaskFilter(float radius)
-
onValueChanged
void onValueChanged()
-
addAnimation
void addAnimation(@Nullable() BaseKeyframeAnimation<out Object, out Object> newAnimation)
-
removeAnimation
void removeAnimation(BaseKeyframeAnimation<out Object, out Object> animation)
-
draw
void draw(Canvas canvas, Matrix parentMatrix, int parentAlpha, @Nullable() DropShadow shadowToApply)
-
getBlurEffect
@Nullable() BlurEffect getBlurEffect()
-
getBlendMode
LBlendMode getBlendMode()
-
getDropShadowEffect
@Nullable() DropShadowEffect getDropShadowEffect()
-
setContents
void setContents(List<Content> contentsBefore, List<Content> contentsAfter)
-
resolveKeyPath
void resolveKeyPath(KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath)
Called recursively during keypath resolution.
The overridden method should just call:MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this);
- Parameters:
keyPath- The full keypath being resolved.depth- The current depth that this element should be checked at in the keypath.accumulator- A list of fully resolved keypaths.currentPartialKeyPath- A keypath that contains all parent element of this one.This element should create a copy of this and append itselfwith KeyPath#addKey when it adds itself to the accumulatoror propagates resolution to its children.
-
addValueCallback
@CallSuper() <T> void addValueCallback(T property, @Nullable() LottieValueCallback<T> callback)
The overridden method should handle appropriate properties and set value callbacks on theiranimations.
-
-
-
-