public interface ResourceCallback
Modifier and Type | Method and Description |
---|---|
void |
onException(Exception e)
Called when a resource fails to load successfully.
|
void |
onResourceReady(Resource<?> resource)
Called when a resource is successfully loaded.
|
void onResourceReady(Resource<?> resource)
resource
- The loaded resource.void onException(Exception e)
e
- The exception that caused the failure, or null it the load failed for some reason other than an
exception.