-
Notifications
You must be signed in to change notification settings - Fork 0
carousel
//tvlib/org.mjdev.tvlib.ui.components.carousel/Carousel
[androidJvm]\
fun Carousel(modifier: Modifier = Modifier, itemCount: Int = 0, carouselState: CarouselState = remember(itemCount) { CarouselState() }, autoScrollDurationMillis: Long = CarouselDefaults.TimeToDisplayItemMillis, contentTransformStartToEnd: ContentTransform = CarouselDefaults.contentTransform, contentTransformEndToStart: ContentTransform = CarouselDefaults.contentTransform, carouselIndicator: @ComposableBoxScope.() -> Unit = { CarouselDefaults.IndicatorRow( itemCount = itemCount, activeItemIndex = carouselState.activeItemIndex, modifier = Modifier .align(Alignment.BottomEnd) .padding(16.dp), ) }, isAutoScrollActive: MutableState<Boolean> = remember(itemCount) { mutableStateOf(false) }, focusState: MutableState<FocusState> = remember(itemCount) { mutableStateOf(FocusHelper(false)) }, content: @ComposableAnimatedContentScope.(index: Int) -> Unit = {})