-
- All Implemented Interfaces:
-
com.airbnb.lottie.animation.content.Content,com.airbnb.lottie.animation.content.DrawingContent,com.airbnb.lottie.animation.content.GreedyContent,com.airbnb.lottie.animation.content.KeyPathElementContent,com.airbnb.lottie.animation.content.PathContent,com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.AnimationListener,com.airbnb.lottie.model.KeyPathElement
public class RepeaterContent implements DrawingContent, PathContent, GreedyContent, BaseKeyframeAnimation.AnimationListener, KeyPathElementContent
-
-
Constructor Summary
Constructors Constructor Description RepeaterContent(LottieDrawable lottieDrawable, BaseLayer layer, Repeater repeater)
-
Method Summary
Modifier and Type Method Description PathgetPath()StringgetName()voidabsorbContent(ListIterator<Content> contentsIter)An iterator of contents that can be used to take ownership of contents. voidsetContents(List<Content> contentsBefore, List<Content> contentsAfter)voiddraw(Canvas canvas, Matrix parentMatrix, int alpha, @Nullable() DropShadow shadowToApply)voidgetBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents)voidonValueChanged()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. -
-
Constructor Detail
-
RepeaterContent
RepeaterContent(LottieDrawable lottieDrawable, BaseLayer layer, Repeater repeater)
-
-
Method Detail
-
absorbContent
void absorbContent(ListIterator<Content> contentsIter)
An iterator of contents that can be used to take ownership of contents. If ownership is taken,the content should be removed from the iterator.
The contents should be iterated by calling hasPrevious() and previous() so that the list ofcontents is traversed from bottom to top which is the correct order for handling AE logic.
-
setContents
void setContents(List<Content> contentsBefore, List<Content> contentsAfter)
-
draw
void draw(Canvas canvas, Matrix parentMatrix, int alpha, @Nullable() DropShadow shadowToApply)
-
onValueChanged
void onValueChanged()
-
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
<T> void addValueCallback(T property, @Nullable() LottieValueCallback<T> callback)
The overridden method should handle appropriate properties and set value callbacks on theiranimations.
-
-
-
-