public class RepeaterContent extends java.lang.Object implements DrawingContent, BaseKeyframeAnimation.AnimationListener, KeyPathElementContent
| Constructor and Description |
|---|
RepeaterContent(LottieDrawable lottieDrawable,
BaseLayer layer,
Repeater repeater) |
| Modifier and Type | Method and Description |
|---|---|
void |
absorbContent(java.util.ListIterator<Content> contentsIter)
An iterator of contents that can be used to take ownership of contents.
|
<T> void |
addValueCallback(T property,
LottieValueCallback<T> callback)
The overridden method should handle appropriate properties and set value callbacks on their
animations.
|
void |
draw(android.graphics.Canvas canvas,
android.graphics.Matrix parentMatrix,
int alpha) |
void |
getBounds(android.graphics.RectF outBounds,
android.graphics.Matrix parentMatrix,
boolean applyParents) |
java.lang.String |
getName() |
android.graphics.Path |
getPath() |
void |
onValueChanged() |
void |
resolveKeyPath(KeyPath keyPath,
int depth,
java.util.List<KeyPath> accumulator,
KeyPath currentPartialKeyPath)
Called recursively during keypath resolution.
|
void |
setContents(java.util.List<Content> contentsBefore,
java.util.List<Content> contentsAfter) |
public RepeaterContent(LottieDrawable lottieDrawable, BaseLayer layer, Repeater repeater)
public void absorbContent(java.util.ListIterator<Content> contentsIter)
public void setContents(java.util.List<Content> contentsBefore, java.util.List<Content> contentsAfter)
setContents in interface Contentpublic android.graphics.Path getPath()
public void draw(android.graphics.Canvas canvas,
android.graphics.Matrix parentMatrix,
int alpha)
draw in interface DrawingContentpublic void getBounds(android.graphics.RectF outBounds,
android.graphics.Matrix parentMatrix,
boolean applyParents)
getBounds in interface DrawingContentpublic void onValueChanged()
onValueChanged in interface BaseKeyframeAnimation.AnimationListenerpublic void resolveKeyPath(KeyPath keyPath, int depth, java.util.List<KeyPath> accumulator, KeyPath currentPartialKeyPath)
KeyPathElementresolveKeyPath in interface KeyPathElementkeyPath - 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. If this element fully matches the
keypath then it should add itself to this list.currentPartialKeyPath - A keypath that contains all parent element of this one.
This element should create a copy of this and append itself
with KeyPath#addKey when it adds itself to the accumulator
or propagates resolution to its children.public <T> void addValueCallback(T property,
LottieValueCallback<T> callback)
KeyPathElementaddValueCallback in interface KeyPathElement