com.bumptech.glide.request
Interface ResourceCallback

All Known Implementing Classes:
GenericRequest

public interface ResourceCallback

A callback that listens for when a resource load completes successfully or fails due to an exception.


Method Summary
 void onException(Exception e)
          Called when a resource fails to load successfully.
 void onResourceReady(Resource<?> resource)
          Called when a resource is successfully loaded.
 

Method Detail

onResourceReady

void onResourceReady(Resource<?> resource)
Called when a resource is successfully loaded.

Parameters:
resource - The loaded resource.

onException

void onException(Exception e)
Called when a resource fails to load successfully.

Parameters:
e - The exception that caused the failure, or null it the load failed for some reason other than an exception.