/** * Internal method. */ @NonNull public RequestManagerRetriever getRequestManagerRetriever() { return requestManagerRetriever; }
/** * Returns the {@link RequestManagerTreeNode} for this fragment. */ @NonNull public RequestManagerTreeNode getRequestManagerTreeNode() { return requestManagerTreeNode; }
/** * Returns the class of data this factory can produce * {@link com.bumptech.glide.load.data.DataRewinder}s for. */ @NonNull Class<T> getDataClass(); }
@NonNull @Override public DataSource getDataSource() { return DataSource.LOCAL; }
@NonNull @Override public Class<InputStream> getDataClass() { return InputStream.class; } }
/** * Removes the given listener from the set of listeners managed by this Lifecycle implementation, * returning {@code true} if the listener was removed successfully, and {@code false} otherwise. * * <p>This is an optimization only, there is no guarantee that every added listener will * eventually be removed. */ void removeListener(@NonNull LifecycleListener listener); }
@NonNull @Override public Class<InputStream> getDataClass() { return InputStream.class; }
@NonNull @Override public DataSource getDataSource() { return DataSource.REMOTE; } }
@NonNull @Override public Object rewindAndGet() { return data; }
/** * Writes data to the file and returns true if the write was successful and should be committed, * and false if the write should be aborted. * * @param file The File the Writer should write to. */ boolean write(@NonNull File file); }
/** * Called when the load fails. * * @param e a non-null {@link Exception} indicating why the load failed. */ void onLoadFailed(@NonNull Exception e); }
/** * Lazily apply options to a {@link com.bumptech.glide.GlideBuilder} immediately before the Glide * singleton is created. * * <p> This method will be called once and only once per implementation. </p> * * @param context An Application {@link android.content.Context}. * @param builder The {@link com.bumptech.glide.GlideBuilder} that will be used to create Glide. */ void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder); }
/** * Helper constructor that accepts an {@link FragmentActivity}. */ public RecyclerViewPreloader(@NonNull FragmentActivity fragmentActivity, @NonNull PreloadModelProvider<T> preloadModelProvider, @NonNull PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) { this(Glide.with(fragmentActivity), preloadModelProvider, preloadDimensionProvider, maxPreload); }
/** * Helper constructor that accepts an {@link Fragment}. */ public RecyclerViewPreloader(@NonNull Fragment fragment, @NonNull PreloadModelProvider<T> preloadModelProvider, @NonNull PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) { this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload); }
/** * @deprecated Use {@link #BitmapDrawableTranscoder(Resources)}, {@code bitmapPool} is unused. */ @Deprecated public BitmapDrawableTranscoder( @NonNull Resources resources, @SuppressWarnings("unused") BitmapPool bitmapPool) { this(resources); }
@NonNull private CharSequence safeSequence(@Nullable CharSequence sequence) { if (sequence == null) { return EMPTY_SEQUENCE; } else { return sequence; } } }
/** * Add bitmap to the cache with the given key. * * @param key The key to retrieve the bitmap. * @param resource The {@link com.bumptech.glide.load.engine.EngineResource} to store. * @return The old value of key (null if key is not in map). */ @Nullable Resource<?> put(@NonNull Key key, @Nullable Resource<?> resource);