-
public final class BannerState
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBannerState.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegerrealPageCountprivate final IntegercurrentPageprivate final FloatcurrentPageOffsetprivate IntegershowPageCountprivate IntegerinitialPage
-
Constructor Summary
Constructors Constructor Description BannerState(Integer initialPage)
-
Method Summary
Modifier and Type Method Description final IntegergetRealPageCount()final IntegergetCurrentPage()final FloatgetCurrentPageOffset()final IntegergetShowPageCount()final UnitsetShowPageCount(Integer showPageCount)final IntegergetInitialPage()final UnitsetInitialPage(Integer initialPage)final UnitscrollToPage(@IntRange(from = 0.toLong()) Integer page, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Float pageOffset)final UnitanimateScrollToPage(@IntRange(from = 0.toLong()) Integer page, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Float pageOffset)-
-
Constructor Detail
-
BannerState
BannerState(Integer initialPage)
-
-
Method Detail
-
getRealPageCount
final Integer getRealPageCount()
-
getCurrentPage
final Integer getCurrentPage()
-
getCurrentPageOffset
final Float getCurrentPageOffset()
-
getShowPageCount
@IntRange(from = 0.toLong()) final Integer getShowPageCount()
-
setShowPageCount
final Unit setShowPageCount(Integer showPageCount)
-
getInitialPage
final Integer getInitialPage()
-
setInitialPage
final Unit setInitialPage(Integer initialPage)
-
scrollToPage
final Unit scrollToPage(@IntRange(from = 0.toLong()) Integer page, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Float pageOffset)
-
animateScrollToPage
final Unit animateScrollToPage(@IntRange(from = 0.toLong()) Integer page, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Float pageOffset)
-
-
-
-