Image

class Image : ImageSource

A class that holds the image data and some preferences for the image view and image loading.

Constructors

Link copied to clipboard
fun Image(uri: String, builder: ImageBuilder? = null)
Link copied to clipboard
fun Image(url: HttpUrl, builder: ImageBuilder? = null)
Link copied to clipboard
fun Image(uri: Uri, builder: ImageBuilder? = null)
Link copied to clipboard
fun Image(file: File, builder: ImageBuilder? = null)
Link copied to clipboard
fun Image(@DrawableRes drawableRes: Int, builder: ImageBuilder? = null)
Link copied to clipboard
fun Image(drawable: Drawable, builder: ImageBuilder? = null)
Link copied to clipboard
fun Image(bitmap: Bitmap, builder: ImageBuilder? = null)

Functions

Link copied to clipboard
fun ratio(ratio: Ratio)

Set the ratio of the container view that contains the ImageView.

Link copied to clipboard
fun setupImageView(imageViewBuilder: ImageViewBuilder)

Setup ImageView.

Link copied to clipboard
fun setupRequest(builder: ImageRequestBuilder)

Setup the image loading request.