coil-base
/
coil.memory
/
MemoryCache
Memory
Cache
interface
MemoryCache
Content copied to clipboard
An in-memory cache of recently loaded images.
Types
Functions
Properties
Types
Key
Link copied to clipboard
sealed class
Key
:
Parcelable
Content copied to clipboard
The cache key for an image in the memory cache.
Functions
clear
Link copied to clipboard
abstract fun
clear
()
Content copied to clipboard
Remove all values from the memory cache.
get
Link copied to clipboard
abstract operator fun
get
(key:
MemoryCache.Key
):
Bitmap
?
Content copied to clipboard
Get the
Bitmap
associated with
key
.
remove
Link copied to clipboard
abstract fun
remove
(key:
MemoryCache.Key
):
Boolean
Content copied to clipboard
Remove the
Bitmap
referenced by
key
.
set
Link copied to clipboard
abstract operator fun
set
(key:
MemoryCache.Key
, bitmap:
Bitmap
)
Content copied to clipboard
Set the
Bitmap
associated with
key
.
Properties
maxSize
Link copied to clipboard
abstract val
maxSize
:
Int
Content copied to clipboard
The maximum size of the cache in bytes.
size
Link copied to clipboard
abstract val
size
:
Int
Content copied to clipboard
The current size of the cache in bytes.