ImageCache

interface ImageCache

The device's cache for storing Bitmap images.

Inheritors

Types

Link copied to clipboard

Represents the available places of caching.

Link copied to clipboard
interface Config

Cache configuration properties.

Link copied to clipboard
class Factory

Factory for creating ImageCache instances.

Link copied to clipboard

Represents the type of the image.

Functions

Link copied to clipboard
abstract fun addImage(imageUrl: String, cacheStrategy: CacheStrategy): Boolean

Caches a Bitmap image that has been downloaded using the image url.

Link copied to clipboard
abstract fun addImageBatch(cacheStrategies: List<Pair<String, CacheStrategy>>)

Caches a batch of Bitmap images.

Link copied to clipboard
abstract fun getImage(imageRetrieveInfo: ImageRetrieveInfo): Any?

Retrieves the image for the image url value, as the key, if it exists in the cache.

Link copied to clipboard
abstract fun getImagePath(imageRetrieveInfo: ImageRetrieveInfo): String?

Retrieves the image path for the image url value, as the key, if it exists in the cache.

Link copied to clipboard
abstract fun removeAll(shouldDeleteFromDiskOnExit: Boolean? = true)

Removes all the cached images from the ImageCache