Interface

PageIndicatorState

An interface for connection between Pager and HorizontalPageIndicator.

Source set: Android
public interface PageIndicatorState

An interface for connection between Pager and HorizontalPageIndicator.

Properties

pageOffset

Source set: Android
public 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.

selectedPage

Source set: Android
public val selectedPage: Int

The currently selected page index

pageCount

Source set: Android
public val pageCount: Int

Total number of pages

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: