Package coil.request


Link copied to clipboard
enum CachePolicy : Enum<CachePolicy>
Represents the read/write policy for a cache source.
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.
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.
Link copied to clipboard
interface Disposable
Represents the work of an ImageRequest that has been executed by an ImageLoader.
Link copied to clipboard
class ErrorResult(drawable: Drawable?, request: ImageRequest, throwable: Throwable) : ImageResult
Indicates that an error occurred while executing the request.
Link copied to clipboard
class ImageRequest
An immutable value object that represents a request for an image.
Link copied to clipboard
sealed class ImageResult
Represents the result of an executed ImageRequest.
Link copied to clipboard
object NullRequestData
The value for if the request's data was not set or was set to null.
Link copied to clipboard
class NullRequestDataException : RuntimeException
Exception thrown when an ImageRequest with empty/null data is executed by an ImageLoader.
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.
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.
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.
Link copied to clipboard
class Tags
A map of custom objects.