Skip to content

coil-default / coil / Coil

Coil

object Coil

A singleton that holds the default ImageLoader instance.

Functions

Name Summary
loader Get the default ImageLoader instance. Creates a new instance if none has been set.fun loader():ImageLoader
setDefaultImageLoader Set the default ImageLoader instance. Shutdown the current instance.fun setDefaultImageLoader(loader:ImageLoader):Unit
Set a lazy callback to create the default ImageLoader instance. Shutdown the current instance.fun setDefaultImageLoader(initializer: () ->ImageLoader):Unit

Extension Functions

Name Summary
get suspend funCoil.get(uri:String, builder:GetRequestBuilder.() ->Unit= {}):Drawable
suspend funCoil.get(url:HttpUrl, builder:GetRequestBuilder.() ->Unit= {}):Drawable
suspend funCoil.get(uri:Uri, builder:GetRequestBuilder.() ->Unit= {}):Drawable
suspend funCoil.get(file:File, builder:GetRequestBuilder.() ->Unit= {}):Drawable
suspend funCoil.get(drawableRes:Int, builder:GetRequestBuilder.() ->Unit= {}):Drawable
suspend funCoil.get(drawable:Drawable, builder:GetRequestBuilder.() ->Unit= {}):Drawable
suspend funCoil.get(bitmap:Bitmap, builder:GetRequestBuilder.() ->Unit= {}):Drawable
getAny suspend funCoil.getAny(data:Any, builder:GetRequestBuilder.() ->Unit= {}):Drawable
load funCoil.load(context:Context, uri:String?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
funCoil.load(context:Context, url:HttpUrl?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
funCoil.load(context:Context, uri:Uri?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
funCoil.load(context:Context, file:File?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
funCoil.load(context:Context, drawableRes:Int, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
funCoil.load(context:Context, drawable:Drawable?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
funCoil.load(context:Context, bitmap:Bitmap?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable
loadAny funCoil.loadAny(context:Context, data:Any?, builder:LoadRequestBuilder.() ->Unit= {}):RequestDisposable