Home | History | Annotate | Download | only in util

Lines Matching refs:referent

103          * Creates an callback keeping a weak reference to {@code referent}.
105 * <p> If the "referent" is no longer valid, it no longer makes sense to run the
106 * callback. The referent is the View, or Activity or whatever that actually needs to
107 * receive the Bitmap. If the referent has been GC, then no need to run the callback.
109 public ImageLoaderCallback(T referent) {
110 mWeakReference = new WeakReference<>(referent);
117 T referent = mWeakReference.get();
118 if (referent != null) {
119 onBitmapLoaded(referent, bitmap);
128 public abstract void onBitmapLoaded(T referent, @Nullable Bitmap bitmap);