load

fun ImageView.load(uri: Uri, placeholder: Drawable? = null, fallback: Drawable? = null)

Attempts to load and show the content identified by uri in this ImageView. If uri's content is not loaded yet, placeholder will be shown, or the current drawable if placeholder is null. If fallback is defined and the loading fails, fallback will be shown.

NOTE: It is the client's responsibility to make sure the uri is secure and trusted.