ResourceMethod(@Nullable ClassName typeName, String name, boolean requiresResources, int sdk) { this.typeName = typeName; this.name = name; this.requiresResources = requiresResources; this.sdk = sdk; }
/** * 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; }
RemoteViewsAction(Picasso picasso, Request data, @DrawableRes int errorResId, @NonNull RemoteViewsTarget target, @Nullable Callback callback) { super(picasso, data); this.errorResId = errorResId; this.target = target; this.callback = callback; }
/** * Callback indicating the image could not be successfully loaded. * <p> * <strong>Note:</strong> The passed {@link Drawable} may be {@code null} if none has been * specified via {@link RequestCreator#error(android.graphics.drawable.Drawable)} * or {@link RequestCreator#error(int)}. */ void onBitmapFailed(@NonNull Exception e, @Nullable Drawable errorDrawable);
ImageViewAction(Picasso picasso, ImageView target, Request data, @Nullable Drawable errorDrawable, @DrawableRes int errorResId, boolean noFade, @Nullable Callback callback) { super(picasso, data); this.target = target; this.errorDrawable = errorDrawable; this.errorResId = errorResId; this.noFade = noFade; this.callback = callback; }
/** * This normally needs to be able to invalidate the view/drawable but not for the test. */ @VisibleForTesting TextDelegate() { animationView = null; drawable = null; }
/** * Used to determine if an animation can be drawn with hardware acceleration. */ @RestrictTo(RestrictTo.Scope.LIBRARY) public int getMaskAndMatteCount() { return maskAndMatteCount; }
/** * Apply the specified {@code value} across the {@code array} of views using the {@code property}. */ @UiThread public static <T extends View, V> void set(@NonNull T[] array, @NonNull Property<? super T, V> setter, @Nullable V value) { //noinspection ForLoopReplaceableByForEach for (int i = 0, count = array.length; i < count; i++) { setter.set(array[i], value); } }
/** * Composition will be null if there was an error loading it. Check logcat for more details. */ void onCompositionLoaded(@Nullable LottieComposition composition); }
@RestrictTo(RestrictTo.Scope.LIBRARY) public final void setAnimation(@Nullable BaseKeyframeAnimation<?, ?> animation) { this.animation = animation; } }
@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; }
/** * Returns the bitmap that has been stored for this image asset if one was explicitly set. */ @Nullable public Bitmap getBitmap() { return bitmap; }
/** Set the {@code value} using the specified {@code setter} across the {@code array} of views. */ @UiThread public static <T extends View, V> void set(@NonNull T[] array, @NonNull Setter<? super T, V> setter, @Nullable V value) { for (int i = 0, count = array.length; i < count; i++) { setter.set(array[i], value, i); } }
/** This will be null if the startValue and endValue are the same. */ @Nullable Path getPath() { return path; } }