-
public final class SuccessResult extends ImageResult
Indicates that the request completed successfully.
-
-
Field Summary
Fields Modifier and Type Field Description private final Drawabledrawableprivate final ImageRequestrequestprivate final DataSourcedataSourceprivate final MemoryCache.KeymemoryCacheKeyprivate final StringdiskCacheKeyprivate final BooleanisSampledprivate final BooleanisPlaceholderCached
-
Constructor Summary
Constructors Constructor Description SuccessResult(Drawable drawable, ImageRequest request, DataSource dataSource, MemoryCache.Key memoryCacheKey, String diskCacheKey, Boolean isSampled, Boolean isPlaceholderCached)
-
Method Summary
Modifier and Type Method Description DrawablegetDrawable()The success drawable. ImageRequestgetRequest()The request that was executed to create this result. final DataSourcegetDataSource()The data source that the image was loaded from. final MemoryCache.KeygetMemoryCacheKey()The cache key for the image in the memory cache. final StringgetDiskCacheKey()The cache key for the image in the disk cache. final BooleangetIsSampled()'true' if the image is sampled (i.e. final BooleangetIsPlaceholderCached()'true' if ImageRequest.placeholderMemoryCacheKey was present in the memory cache. final SuccessResultcopy(Drawable drawable, ImageRequest request, DataSource dataSource, MemoryCache.Key memoryCacheKey, String diskCacheKey, Boolean isSampled, Boolean isPlaceholderCached)Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
SuccessResult
SuccessResult(Drawable drawable, ImageRequest request, DataSource dataSource, MemoryCache.Key memoryCacheKey, String diskCacheKey, Boolean isSampled, Boolean isPlaceholderCached)
-
-
Method Detail
-
getDrawable
Drawable getDrawable()
The success drawable.
-
getRequest
ImageRequest getRequest()
The request that was executed to create this result.
-
getDataSource
final DataSource getDataSource()
The data source that the image was loaded from.
-
getMemoryCacheKey
final MemoryCache.Key getMemoryCacheKey()
The cache key for the image in the memory cache. It is 'null' if the image was not written to the memory cache.
-
getDiskCacheKey
final String getDiskCacheKey()
The cache key for the image in the disk cache. It is 'null' if the image was not written to the disk cache.
-
getIsSampled
final Boolean getIsSampled()
'true' if the image is sampled (i.e. loaded into memory at less than its original size).
-
getIsPlaceholderCached
final Boolean getIsPlaceholderCached()
'true' if ImageRequest.placeholderMemoryCacheKey was present in the memory cache.
-
copy
final SuccessResult copy(Drawable drawable, ImageRequest request, DataSource dataSource, MemoryCache.Key memoryCacheKey, String diskCacheKey, Boolean isSampled, Boolean isPlaceholderCached)
-
-
-
-