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)

Properties

dataSource
Link copied to clipboard
val dataSource: DataSource
isPlaceholderMemoryCacheKeyPresent
Link copied to clipboard
val isPlaceholderMemoryCacheKeyPresent: Boolean
isSampled
Link copied to clipboard
val isSampled: Boolean
memoryCacheKey
Link copied to clipboard
val memoryCacheKey: MemoryCache.Key?