Package coil

Types

Coil
Link copied to clipboard
object Coil

A class that holds the singleton ImageLoader instance.

ImageLoaderFactory
Link copied to clipboard
fun interface ImageLoaderFactory

A factory that creates new ImageLoader instances.

Functions

clear
Link copied to clipboard
inline fun ImageView.clear()
dispose
Link copied to clipboard
inline fun ImageView.dispose()

Dispose the request attached to this view (if there is one).

load
Link copied to clipboard
inline fun ImageView.load(data: Any?, imageLoader: ImageLoader = context.imageLoader, builder: ImageRequest.Builder.() -> Unit = {}): Disposable

Load the image referenced by data and set it on this ImageView.

loadAny
Link copied to clipboard
inline fun ImageView.loadAny(data: Any?, imageLoader: ImageLoader = context.imageLoader, builder: ImageRequest.Builder.() -> Unit = {}): Disposable

Properties

imageLoader
Link copied to clipboard
val Context.imageLoader: ImageLoader

Get the singleton ImageLoader.

result
Link copied to clipboard
val ImageView.result: ImageResult?

Get the ImageResult of the most recent executed image request attached to this view.