SuccessResult

class SuccessResult(drawable: Drawable, request: ImageRequest, dataSource: DataSource, memoryCacheKey: MemoryCache.Key?, diskCacheKey: String?, isSampled: Boolean, isPlaceholderCached: Boolean) : ImageResult

Indicates that the request completed successfully.

Constructors

SuccessResult
Link copied to clipboard
fun SuccessResult(drawable: Drawable, request: ImageRequest, dataSource: DataSource, memoryCacheKey: MemoryCache.Key? = null, diskCacheKey: String? = null, isSampled: Boolean = false, isPlaceholderCached: Boolean = false)

Functions

copy
Link copied to clipboard
fun copy(drawable: Drawable = this.drawable, request: ImageRequest = this.request, dataSource: DataSource = this.dataSource, memoryCacheKey: MemoryCache.Key? = this.memoryCacheKey, diskCacheKey: String? = this.diskCacheKey, isSampled: Boolean = this.isSampled, isPlaceholderCached: Boolean = this.isPlaceholderCached): SuccessResult
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Properties

dataSource
Link copied to clipboard
val dataSource: DataSource
The data source that the image was loaded from.
diskCacheKey
Link copied to clipboard
val diskCacheKey: String? = null
The cache key for the image in the disk cache.
drawable
Link copied to clipboard
open override val drawable: Drawable
The success drawable.
isPlaceholderCached
Link copied to clipboard
val isPlaceholderCached: Boolean = false
'true' if ImageRequest.placeholderMemoryCacheKey was present in the memory cache.
isSampled
Link copied to clipboard
val isSampled: Boolean = false
'true' if the image is sampled (i.e.
memoryCacheKey
Link copied to clipboard
val memoryCacheKey: MemoryCache.Key? = null
The cache key for the image in the memory cache.
request
Link copied to clipboard
open override val request: ImageRequest
The request that was executed to create this result.