Image Requests

ImageRequests are value objects that provide all the necessary information for an ImageLoader to load an image.

ImageRequests can be created using a builder:

val request = ImageRequest.Builder(context)
    .data("https://www.example.com/image.jpg")
    .crossfade(true)
    .target(imageView)
    .build()

Once you've created a request pass it to an ImageLoader to enqueue/execute it:

imageLoader.enqueue(request)

See the API documentation for more information.