setRemoteImage
Attempts to load and show the remoteImage in this ImageView.
fun ImageView.setRemoteImage(uri: Uri?, placeholder: DrawableResolver?, fallback: DrawableResolver? = null)
Attempts to load and show the content identified by uri in this ImageView. If uri is null
or its content is not loaded yet, placeholder will be shown. 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.
fun ImageView.setRemoteImage(uri: Uri?, placeholderDrawable: Drawable?, fallbackDrawable: Drawable? = null)
Attempts to load and show the content identified by uri in this ImageView. If uri is null
or its content is not loaded yet, placeholderDrawable will be shown. If fallbackDrawable is defined and the loading fails, fallbackDrawable will be shown.
NOTE: It is the client's responsibility to make sure the uri is secure and trusted.