/** * Used to determine if an animation can be drawn with hardware acceleration. */ @RestrictTo(RestrictTo.Scope.LIBRARY) public int getMaskAndMatteCount() { return maskAndMatteCount; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public LottieImageAsset(int width, int height, String id, String fileName, String dirName) { this.width = width; this.height = height; this.id = id; this.fileName = fileName; this.dirName = dirName; }
/** * Used to determine if an animation can be drawn with hardware acceleration. */ @RestrictTo(RestrictTo.Scope.LIBRARY) public boolean hasDashPattern() { return hasDashPattern; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public void incrementMatteOrMaskCount(int amount) { maskAndMatteCount += amount; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public float getStartFrame() { return startFrame; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public LottieTask(Callable<LottieResult<T>> runnable) { this(runnable, false); }
@RestrictTo(RestrictTo.Scope.LIBRARY) public float getEndFrame() { return endFrame; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public void setHasDashPattern(boolean hasDashPattern) { this.hasDashPattern = hasDashPattern; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public void init(Rect bounds, float startFrame, float endFrame, float frameRate, List<Layer> layers, LongSparseArray<Layer> layerMap, Map<String, List<Layer>> precomps, Map<String, LottieImageAsset> images, SparseArrayCompat<FontCharacter> characters, Map<String, Font> fonts) { this.bounds = bounds; this.startFrame = startFrame; this.endFrame = endFrame; this.frameRate = frameRate; this.layers = layers; this.layerMap = layerMap; this.precomps = precomps; this.images = images; this.characters = characters; this.fonts = fonts; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public LottieFrameInfo<T> set( float startFrame, float endFrame, T startValue, T endValue, float linearKeyframeProgress, float interpolatedKeyframeProgress, float overallProgress ) { this.startFrame = startFrame; this.endFrame = endFrame; this.startValue = startValue; this.endValue = endValue; this.linearKeyframeProgress = linearKeyframeProgress; this.interpolatedKeyframeProgress = interpolatedKeyframeProgress; this.overallProgress = overallProgress; return this; }
/** * Returns a {@link KeyPathElement} that this has been resolved to. KeyPaths get resolved with * resolveKeyPath on LottieDrawable or LottieAnimationView. */ @RestrictTo(RestrictTo.Scope.LIBRARY) @Nullable public KeyPathElement getResolvedElement() { return resolvedElement; }
@RestrictTo(RestrictTo.Scope.LIBRARY) public final void setAnimation(@Nullable BaseKeyframeAnimation<?, ?> animation) { this.animation = animation; } }
/** * @author pa.gulko zTrap (09.07.2017) */ @RestrictTo(LIBRARY_GROUP) public interface IconicsView { @RestrictTo(LIBRARY_GROUP) void initialize(Context context, AttributeSet attrs, int defStyle); @RestrictTo(LIBRARY_GROUP) void applyAttr(Context context, AttributeSet attrs, int defStyle); }
@RestrictTo(LIBRARY) public class Font {
/** * Any item that can be a part of a {@link KeyPath} should implement this. */ @RestrictTo(LIBRARY) public interface KeyPathElement { /** * Called recursively during keypath resolution. * * The overridden method should just call: * MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this); * * @param keyPath The full keypath being resolved. * @param depth The current depth that this element should be checked at in the keypath. * @param accumulator A list of fully resolved keypaths. If this element fully matches the * keypath then it should add itself to this list. * @param 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. */ void resolveKeyPath( KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath); /** * The overridden method should handle appropriate properties and set value callbacks on their * animations. */ <T> void addValueCallback(T property, @Nullable LottieValueCallback<T> callback); }
@RestrictTo(RestrictTo.Scope.LIBRARY) public class LottieCompositionCache {
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) interface ClientComponentFinalizer { void onFinalize(); } }
@RestrictTo(RestrictTo.Scope.LIBRARY) public void addWarning(String warning) { Log.w(L.TAG, warning); warnings.add(warning); }
@RestrictTo(RestrictTo.Scope.LIBRARY) @Nullable public List<Layer> getPrecomps(String id) { return precomps.get(id); }
@NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public PermissionHelper getHelper() { return mHelper; }