PageIndicatorState
interface PageIndicatorState
An interface for connection between Pager and HorizontalPageIndicator.
Summary
Public properties |
|
|---|---|
Int |
Total number of pages |
Float |
The current offset from the start of |
Int |
The currently selected page index |
Public properties
pageOffset
Added in 1.0.0
val pageOffset: Float
The current offset from the start of selectedPage, as a ratio of the page width.
Changes when a scroll (drag, swipe or fling) between pages happens in Pager.