-
public interface ResourceCallbackA callback that listens for when a resource load completes successfully or fails due to an exception.
-
-
Method Summary
Modifier and Type Method Description abstract voidonResourceReady(Resource<out Object> resource, DataSource dataSource, boolean isLoadedFromAlternateCacheKey)Called when a resource is successfully loaded. abstract voidonLoadFailed(ImageModuleException e)Called when a resource fails to load successfully. abstract ObjectgetLock()Returns the lock to use when notifying individual requests. -
-
Method Detail
-
onResourceReady
abstract void onResourceReady(Resource<out Object> resource, DataSource dataSource, boolean isLoadedFromAlternateCacheKey)
Called when a resource is successfully loaded.
- Parameters:
resource- The loaded resource.
-
onLoadFailed
abstract void onLoadFailed(ImageModuleException e)
Called when a resource fails to load successfully.
- Parameters:
e- a non-null ImageModuleException.
-
-
-
-