1 package com.bumptech.glide.request; 2 3 import com.bumptech.glide.request.target.Target; 4 5 /** 6 * A request that loads an asset for an {@link Target}. 7 */ 8 public interface Request { 9 10 /** 11 * Starts an asynchronous load. 12 */ 13 public void run(); 14 15 /** 16 * Prevents any bitmaps being loaded from previous requests, releases any resources held by this request and 17 * displays the current placeholder if one was provided. 18 */ 19 public void clear(); 20 21 /** 22 * Returns true if this request is running and has not completed or failed. 23 */ 24 public boolean isRunning(); 25 26 /** 27 * Returns true if the request has successfully completed. 28 */ 29 public boolean isComplete(); 30 31 /** 32 * Returns true if the request has failed. 33 */ 34 public boolean isFailed(); 35 36 public void recycle(); 37 } 38