Image Requests¶
ImageRequest
s are value objects that provide all the necessary information for an ImageLoader to load an image. ImageRequest
s can be created using a builder:
val request = ImageRequest.Builder(context)
.data("https://example.com/image.jpg")
.crossfade(true)
.target(imageView)
.build()
Once you've created a request pass it to an ImageLoader
to enqueue/execute it:
See the API documentation for more information.