Builder
Functions
Create a new ImageLoader instance.
Set the ComponentRegistry.
Build and set the ComponentRegistry.
A convenience method to set interceptorCoroutineContext, fetcherCoroutineContext, and decoderCoroutineContext in one call.
The CoroutineContext that Decoder.decode will be executed in.
Set the default disk cache policy.
Set the default error image to use when a request fails.
Set a single EventListener that will receive all callbacks for requests launched by this image loader.
Set the EventListener.Factory to create per-request EventListeners.
Set the default fallback image to use if ImageRequest.data is null.
The CoroutineContext that Fetcher.fetch will be executed in.
Set the default FileSystem for any image requests.
The CoroutineContext that the Interceptor chain will be executed in.
Set the Logger to write logs to.
Set the MemoryCache.
Set a lazy callback to create the MemoryCache.
Set the default memory cache policy.
Set the default network cache policy.
Set the default placeholder image to use when a request starts.
Set the default precision for a request. Precision controls whether the size of the loaded image must match the request's size exactly or not.
Enables adding all components (fetchers and decoders) that are supported by the service locator to this ImageLoader's ComponentRegistry. All of Coil's first party decoders and fetchers are supported.