public interface Downloader
Modifier and Type | Method and Description |
---|---|
Response |
load(okhttp3.Request request)
Download the specified image
url from the internet. |
void |
shutdown()
Allows to perform a clean up for this
Downloader including closing the disk cache and
other resources. |
Response load(okhttp3.Request request) throws java.io.IOException
url
from the internet.java.io.IOException
- if the requested URL cannot successfully be loaded.void shutdown()
Downloader
including closing the disk cache and
other resources.