MemoryCache
An interface for adding and removing resources from an in memory cache.
Types
Link copied to clipboard
An interface that will be called whenever a bitmap is removed from the cache.
Functions
Link copied to clipboard
Evict all items from the memory cache.
Link copied to clipboard
Returns the sum of the sizes of all the contents of the cache in bytes.
Link copied to clipboard
Returns the current maximum size in bytes of the cache.
Link copied to clipboard
abstract fun setResourceRemovedListener(listener: MemoryCache.ResourceRemovedListener)
Content copied to clipboard
Set the listener to be called when a bitmap is removed from the cache.
Link copied to clipboard
Adjust the maximum size of the cache by multiplying the original size of the cache by the given multiplier.
Link copied to clipboard
Trim the memory cache to the appropriate level.