-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public class ImageDownload implements Closeable
Abstraction around downloading an image in a background executor.
-
-
Method Summary
Modifier and Type Method Description Task<Bitmap>getTask()static ImageDownloadcreate(String imageUrl)voidstart(ExecutorService executor)BitmapblockingDownload()voidclose()-
-
Method Detail
-
create
@Nullable() static ImageDownload create(String imageUrl)
-
start
void start(ExecutorService executor)
-
blockingDownload
Bitmap blockingDownload()
-
close
void close()
-
-
-
-