download
A function to get the Drawable from the provided remoteImage. The optional targetView is used to determine the expected Drawable size which fits the targetView.
Returns a LiveData that holds:
RemoteImage.placeholder during downloading.
The content of RemoteImage.uri after the download completes successfully.
The RemoteImage.fallback if an error occurs.
NOTE: It is the client's responsibility to make sure the RemoteImage.uri is secure and trusted.
A function to get the Drawable from the provided uri. The optional targetView is used to determine the expected Drawable size which fits the targetView.
Returns a LiveData that holds:
RemoteImage.placeholder during downloading.
The content of RemoteImage.uri after the download completes successfully.
The RemoteImage.fallback if an error occurs.
NOTE: It is the client's responsibility to make sure the uri is secure and trusted.