Package com.airbnb.lottie.model
Interface KeyPathElement
-
- All Known Subinterfaces:
KeyPathElementContent
- All Known Implementing Classes:
BaseLayer,BaseStrokeContent,CompositionLayer,ContentGroup,EllipseContent,FillContent,GradientFillContent,GradientStrokeContent,ImageLayer,NullLayer,PolystarContent,RectangleContent,RepeaterContent,ShapeLayer,SolidLayer,StrokeContent,TextLayer
public interface KeyPathElementAny item that can be a part of aKeyPathshould implement this.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voidaddValueCallback(T property, LottieValueCallback<T> callback)The overridden method should handle appropriate properties and set value callbacks on their animations.voidresolveKeyPath(KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath)Called recursively during keypath resolution.
-
-
-
Method Detail
-
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. 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.
-
addValueCallback
<T> void addValueCallback(T property, @Nullable LottieValueCallback<T> callback)The overridden method should handle appropriate properties and set value callbacks on their animations.
-
-