Package com.bumptech.glide.request
Interface ResourceCallback
-
- All Known Implementing Classes:
SingleRequest
public interface ResourceCallbackA callback that listens for when a resource load completes successfully or fails due to an exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetLock()Returns the lock to use when notifying individual requests.voidonLoadFailed(GlideException e)Called when a resource fails to load successfully.voidonResourceReady(Resource<?> resource, DataSource dataSource, boolean isLoadedFromAlternateCacheKey)Called when a resource is successfully loaded.
-
-
-
Method Detail
-
onResourceReady
void onResourceReady(Resource<?> resource, DataSource dataSource, boolean isLoadedFromAlternateCacheKey)
Called when a resource is successfully loaded.- Parameters:
resource- The loaded resource.
-
onLoadFailed
void onLoadFailed(GlideException e)
Called when a resource fails to load successfully.- Parameters:
e- a non-nullGlideException.
-
getLock
java.lang.Object getLock()
Returns the lock to use when notifying individual requests.
-
-