Image Preview
There's cases when you want to image more clearly. Referencing from Tedis here.
Call this method:
previewImage(
ctx = this, // (1)
listImage = listOf( // (2)
"urlImage1",
"urlImage2",
"urlImage3",
"urlImage4",
"urlImage5",
"urlImage6",
),
position = 0, // (3)
loader = {image, url -> // (4)
(image as ImageView).setImageURI(url)
},
onDismiss = {
// (5)
}
)
Context
for inflatingImageViewer
- List of image to open
- Index of the first image to display, default 0
- How to load the image
- Action when the preview is dismissed