ImageCarousel
fun ImageCarousel(images: List<Pair<String, String?>>, modifier: Modifier = Modifier, pagerState: PagerState = rememberPagerState(
initialPage = 0,
initialPageOffsetFraction = 0f
) {
images.size
}, autoScrollDuration: Long, placeholder: Painter? = null)
An image carousel to display a list of images (by URL) with automatic timed paging and page dot indicators.
Parameters
images
list of image URLs to display.
modifier
Compose Modifier to use.
pagerState
PagerState used by included HorizontalPager.
autoScrollDuration
Time, in ms, to delay between automatically scrolling the pager. Pass zero to disable auto scrolling.
placeholder
placeholder used while images are loaded.