withImageSource

fun withImageSource(source: Any?)

Function to set the image source to load to ImageView

Parameters

source

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

Throws

when the source is not supported type