Package coil.request

Types

CachePolicy
Link copied to clipboard
enum CachePolicy : Enum<CachePolicy>
Represents the read/write policy for a cache source.
DefaultRequestOptions
Link copied to clipboard
class DefaultRequestOptions(interceptorDispatcher: CoroutineDispatcher, fetcherDispatcher: CoroutineDispatcher, decoderDispatcher: CoroutineDispatcher, transformationDispatcher: CoroutineDispatcher, transitionFactory: Transition.Factory, precision: Precision, bitmapConfig: Bitmap.Config, allowHardware: Boolean, allowRgb565: Boolean, placeholder: Drawable?, error: Drawable?, fallback: Drawable?, memoryCachePolicy: CachePolicy, diskCachePolicy: CachePolicy, networkCachePolicy: CachePolicy)
A set of default options that are used to fill in unset ImageRequest values.
DefinedRequestOptions
Link copied to clipboard
class DefinedRequestOptions(lifecycle: Lifecycle?, sizeResolver: SizeResolver?, scale: Scale?, interceptorDispatcher: CoroutineDispatcher?, fetcherDispatcher: CoroutineDispatcher?, decoderDispatcher: CoroutineDispatcher?, transformationDispatcher: CoroutineDispatcher?, transitionFactory: Transition.Factory?, precision: Precision?, bitmapConfig: Bitmap.Config?, allowHardware: Boolean?, allowRgb565: Boolean?, memoryCachePolicy: CachePolicy?, diskCachePolicy: CachePolicy?, networkCachePolicy: CachePolicy?)
Tracks which values have been set (instead of computed automatically using a default) when building an ImageRequest.
Disposable
Link copied to clipboard
interface Disposable
Represents the work of an ImageRequest that has been executed by an ImageLoader.
ErrorResult
Link copied to clipboard
class ErrorResult(drawable: Drawable?, request: ImageRequest, throwable: Throwable) : ImageResult
Indicates that an error occurred while executing the request.
ImageRequest
Link copied to clipboard
class ImageRequest
An immutable value object that represents a request for an image.
ImageResult
Link copied to clipboard
sealed class ImageResult
Represents the result of an executed ImageRequest.
NullRequestData
Link copied to clipboard
object NullRequestData
The value for ImageRequest.data if the request's data was not set or was set to null.
NullRequestDataException
Link copied to clipboard
class NullRequestDataException : RuntimeException
Exception thrown when an ImageRequest with empty/null data is executed by an ImageLoader.
Options
Link copied to clipboard
class Options(context: Context, config: Bitmap.Config, colorSpace: ColorSpace?, size: Size, scale: Scale, allowInexactSize: Boolean, allowRgb565: Boolean, premultipliedAlpha: Boolean, diskCacheKey: String?, headers: Headers, tags: Tags, parameters: Parameters, memoryCachePolicy: CachePolicy, diskCachePolicy: CachePolicy, networkCachePolicy: CachePolicy)
A set of configuration options for fetching and decoding an image.
Parameters
Link copied to clipboard
class Parameters : Iterable<Pair<String, Parameters.Entry>>
A map of generic values that can be used to pass custom data to Fetchers and Decoders.
SuccessResult
Link copied to clipboard
class SuccessResult(drawable: Drawable, request: ImageRequest, dataSource: DataSource, memoryCacheKey: MemoryCache.Key?, diskCacheKey: String?, isSampled: Boolean, isPlaceholderCached: Boolean) : ImageResult
Indicates that the request completed successfully.
Tags
Link copied to clipboard
class Tags
A map of custom objects.