Metadata

data class Metadata(memoryCacheKey: MemoryCache.Key?, isSampled: Boolean, dataSource: DataSource, isPlaceholderMemoryCacheKeyPresent: Boolean)

Supplemental information about a successful image request.

Parameters

memoryCacheKey

The cache key for the image in the memory cache. It is null if the image was not written to the memory cache.

isSampled

True if the image is sampled (i.e. loaded into memory at less than its original size).

dataSource

The data source that the image was loaded from.

isPlaceholderMemoryCacheKeyPresent

True if the request's ImageRequest.placeholderMemoryCacheKey was present in the memory cache and was set as the placeholder.

Constructors

Metadata
Link copied to clipboard
fun Metadata(memoryCacheKey: MemoryCache.Key?, isSampled: Boolean, dataSource: DataSource, isPlaceholderMemoryCacheKeyPresent: Boolean)
The cache key for the image in the memory cache.

Properties

dataSource
Link copied to clipboard
val dataSource: DataSource
The data source that the image was loaded from.
isPlaceholderMemoryCacheKeyPresent
Link copied to clipboard
val isPlaceholderMemoryCacheKeyPresent: Boolean
True if the request's ImageRequest.placeholderMemoryCacheKey was present in the memory cache and was set as the placeholder.
isSampled
Link copied to clipboard
val isSampled: Boolean
True if the image is sampled (i.e.
memoryCacheKey
Link copied to clipboard
val memoryCacheKey: MemoryCache.Key?
The cache key for the image in the memory cache.