Package 

Class ImageDownload

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public class ImageDownload
     implements Closeable
                        

    Abstraction around downloading an image in a background executor.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Task<Bitmap> task
    • Method Summary

      Modifier and Type Method Description
      Task<Bitmap> getTask()
      static ImageDownload create(String imageUrl)
      void start(ExecutorService executor)
      Bitmap blockingDownload()
      void close()
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait