Skip to content

//tvlib/org.mjdev.tvlib.ui.components.carousel/CarouselState

CarouselState

[androidJvm]\ @Stable

class CarouselState(initialActiveItemIndex: Int = 0)

Constructors

CarouselState [androidJvm]
constructor(initialActiveItemIndex: Int = 0)

Properties

Name Summary
activeItemIndex [androidJvm]
var activeItemIndex: Int
activePauseHandlesCount [androidJvm]
var activePauseHandlesCount: Int
isMovingBackward [androidJvm]
var isMovingBackward: Boolean

Functions

Name Summary
equals [androidJvm]
open operator fun equals(other: Any?): Boolean
hashCode [androidJvm]
open fun hashCode(): Int
isFirstItem [androidJvm]
fun isFirstItem(): Boolean
isLastItem [androidJvm]
fun isLastItem(itemCount: Int): Boolean
moveToNextItem [androidJvm]
fun moveToNextItem(itemCount: Int)
moveToPreviousItem [androidJvm]
fun moveToPreviousItem(itemCount: Int)
pauseAutoScroll [androidJvm]
fun pauseAutoScroll(itemIndex: Int): CarouselDefaults.ScrollPauseHandle
toString [androidJvm]
open fun toString(): String