Package cn.authing.guard.data
Class ImageLoader
- java.lang.Object
-
- android.os.AsyncTask<String,Void,Drawable>
-
- cn.authing.guard.data.ImageLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class android.os.AsyncTask
AsyncTask.Status
-
-
Field Summary
-
Fields inherited from class android.os.AsyncTask
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
-
-
Constructor Summary
Constructors Constructor Description ImageLoader(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DrawabledoInBackground(String... urls)voidinto(ImageView imageView)ImageLoaderload(String url)protected voidonPostExecute(Drawable result)static ImageLoaderwith(Context context)-
Methods inherited from class android.os.AsyncTask
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onPreExecute, onProgressUpdate, publishProgress
-
-
-
-
Constructor Detail
-
ImageLoader
public ImageLoader(Context context)
-
-
Method Detail
-
with
public static ImageLoader with(Context context)
-
load
public ImageLoader load(String url)
-
into
public void into(ImageView imageView)
-
doInBackground
protected Drawable doInBackground(String... urls)
- Specified by:
doInBackgroundin classAsyncTask<String,Void,Drawable>
-
-