Interface

PageInfo

This represents a single measured page in a Pager layout.

Source set: Common
public sealed interface PageInfo

This represents a single measured page in a Pager layout.

Properties

index

Source set: Common
public val index: Int

The index of this page.

key

Source set: Common
public val key: Any

The key of the page which was passed to the HorizontalPager or VerticalPager composables.

offset

Source set: Common
public val offset: Int

The main axis offset of the item in pixels. It is relative to the start of the Pager container.

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: