• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.bumptech.glide.request;
2 
3 import com.bumptech.glide.load.engine.Resource;
4 
5 /**
6  * A callback that listens for when a resource load completes successfully or fails due to an exception.
7  */
8 public interface ResourceCallback {
9 
10     /**
11      * Called when a resource is successfully loaded.
12      *
13      * @param resource The loaded resource.
14      */
onResourceReady(Resource<?> resource)15     void onResourceReady(Resource<?> resource);
16 
17     /**
18      * Called when a resource fails to load successfully.
19      *
20      * @param e The exception that caused the failure, or null it the load failed for some reason other than an
21      *          exception.
22      */
onException(Exception e)23     void onException(Exception e);
24 }
25