1package com.bumptech.glide.request;
2
3import 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 */
8public interface ResourceCallback {
9
10    /**
11     * Called when a resource is successfully loaded.
12     *
13     * @param resource The loaded resource.
14     */
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     */
23    void onException(Exception e);
24}
25