This file contains 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
fun imageLoadingTest(imageLoader: ImageLoader, imageView: ImageView) { | |
// Simple form | |
imageLoader.loadImage { into(imageView) withUrl("www.google.com") } | |
// Add some extra options | |
imageLoader.loadImage { into(imageView) withUrl "www.google.com" withOptions { circleCrop = true } } | |
// More like Kotlin DSLs. Using Options builder and specifying callback. | |
imageLoader.loadImage { |
This file contains 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
{ | |
"recipient": { | |
"id": "1360789720642331" | |
}, | |
"message": { | |
"attachment": { | |
"type": "template", | |
"payload": { | |
"template_type": "generic", | |
"elements": [{ |