public class RepeaterContent extends java.lang.Object implements DrawingContent, GreedyContent, BaseKeyframeAnimation.AnimationListener
| 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.
|
void |
addColorFilter(java.lang.String layerName,
java.lang.String contentName,
android.graphics.ColorFilter colorFilter)
Add a color filter to specific content on a specific layer.
|
void |
draw(android.graphics.Canvas canvas,
android.graphics.Matrix parentMatrix,
int alpha) |
void |
getBounds(android.graphics.RectF outBounds,
android.graphics.Matrix parentMatrix) |
java.lang.String |
getName() |
android.graphics.Path |
getPath() |
void |
onValueChanged() |
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)
GreedyContentabsorbContent in interface GreedyContentpublic 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)
getBounds in interface DrawingContentpublic void addColorFilter(java.lang.String layerName,
java.lang.String contentName,
android.graphics.ColorFilter colorFilter)
DrawingContentaddColorFilter in interface DrawingContentlayerName - name of the layer where the supplied content name lives, null if color
filter is to be applied to all layerscontentName - name of the specific content that the color filter is to be applied, null
is color filter is to be applied to all content that matches the layer paramcolorFilter - the color filter, null to clear the color filterpublic void onValueChanged()
onValueChanged in interface BaseKeyframeAnimation.AnimationListener