load
inline fun ImageView.load(data: Any?, imageLoader: ImageLoader = context.imageLoader, builder: ImageRequest.Builder.() -> Unit = {}): Disposable
Content copied to clipboard
Load the image referenced by data and set it on this ImageView.
Example:
imageView.load("https://www.example.com/image.jpg") {
crossfade(true)
transformations(CircleCropTransformation())
}
The default supported data types are:
Uri (
android.resource
,content
,file
,http
, andhttps
schemes)
Parameters
data
The data to load.
imageLoader
The ImageLoader that will be used to enqueue the ImageRequest. By default, the singleton ImageLoader will be used.
builder
An optional lambda to configure the ImageRequest.