ImageViewLoadConfiguration

constructor(source: Any? = null, transformation: ImageViewLoadConfiguration.ImageTransformation? = null, progressBar: ProgressBar? = null, onImageLoaded: () -> Unit? = null, onImageNotLoaded: () -> Unit? = null)

Parameters

source

the image source that will be loaded into ImageView, supported type is Int, String, and Drawable

transformation

ImageTransformation to define how the size of the image will be displayed by the ratio of ImageView

progressBar

ProgressBar that will be listen when the image is loaded, will be displayed when the image still currently loading and will be hidden when the image already loaded, null by default

onImageLoaded

listener for when the image is successfully loaded, null by default

onImageNotLoaded

listener for when the image is failed to load, null by default