YAACC - UPNP Client and Server
|
Provides cache functionality for Bitmap images in lists. More...
Public Member Functions | |
Bitmap | getBitmap (Uri uri, int width, int height) |
Loads image from cache. | |
void | addBitmap (Uri uri, int width, int height, Bitmap img) |
Adds image to cache. | |
void | resetCache () |
Clear the whole cache. | |
Static Public Member Functions | |
static IconDownloadCacheHandler | getInstance () |
Provides access to the current instance.If none exists a new one is created. | |
Provides cache functionality for Bitmap images in lists.
Implemented as singleton to assure the is always just one instance. Since there is always only one list shown at once there must not be any other caches.
void de.yaacc.util.image.IconDownloadCacheHandler.addBitmap | ( | Uri | uri, |
int | width, | ||
int | height, | ||
Bitmap | img | ||
) |
Adds image to cache.
uri | uri the image is saved at |
img | image to save |
Referenced by de.yaacc.util.image.IconDownloadTask.doInBackground(), and de.yaacc.util.image.ImageDownloadTask.doInBackground().
Bitmap de.yaacc.util.image.IconDownloadCacheHandler.getBitmap | ( | Uri | uri, |
int | width, | ||
int | height | ||
) |
Loads image from cache.
uri | uri the image is saved at |
Referenced by de.yaacc.util.image.IconDownloadTask.doInBackground(), and de.yaacc.util.image.ImageDownloadTask.doInBackground().
|
static |
Provides access to the current instance.If none exists a new one is created.
Referenced by de.yaacc.util.image.ImageDownloadTask.ImageDownloadTask().