Created
August 27, 2019 20:23
-
-
Save colinrtwhite/baea0bb3b41dfb4f531b5c876ba38239 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imageView.load("https://www.example.com/image.jpg") { | |
listener( | |
onSuccess = { /** Handle success. */ }, | |
onError = { /** Handle error. */ } | |
) | |
} | |
// Call this inside of your coroutine scope. | |
// This will throw an error inside of the scope if it fails. | |
val drawable = Coil.get("https://www.example.com/image.jpg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment