com.droidux.pack.gallery.cache.GalleryUrlImageCache |
Known Indirect Subclasses |
A cache that holds the downloaded web images.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GalleryUrlImageCache.Default | Default implementation of the UrlImageCache. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear the cache.
| |||||||||||
Gets the bitmap for the specified url from the cache.
| |||||||||||
For efficiency, if the requested Bitmap is available for quick fetch, for example from memory cache, it will be returned here.
| |||||||||||
Store the bitmap for the specified url in the cache.
|
Gets the bitmap for the specified url from the cache.
Use getFast(String)
first to see whether the image is readily available for quick fetch.
The getFast(String)
is called in the UI thread, whereas this function is called in the background thread.
url | The image url. |
---|
For efficiency, if the requested Bitmap is available for quick fetch, for example from memory cache, it will be returned here.
This function will be called in the UI thread.
The get(String)
function will be called in the background thread to allow for longer fetch, for example from 2nd level/disk cache.
url | The image url. |
---|
Store the bitmap for the specified url in the cache.
url | The image url. |
---|---|
bitmap | The web image. |