loadAny

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

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

ImageView.loadAny is the type-unsafe version of ImageView.load.

Example:

imageView.load("https://www.example.com/image.jpg") {
crossfade(true)
transformations(CircleCropTransformation())
}

Parameters

data

The data to load.

imageLoader

The ImageLoader that will be used to enqueue the ImageRequest.

builder

An optional lambda to configure the request before it is enqueued.