Interface

PagerLayoutInfo

Contains useful information about the currently displayed layout state of a HorizontalPager or VerticalPager.

Source set: Android
public sealed interface PagerLayoutInfo

Contains useful information about the currently displayed layout state of a HorizontalPager or VerticalPager. This information is available after the first measure pass.

Use PagerState.layoutInfo to retrieve this

Properties

pageSize

Source set: Android
public val pageSize: Int

The main axis size of the pages in this pager, in pixels.

orientation

Source set: Android
public val orientation: Orientation

The orientation of this pager (which could be HorizontalPager or VerticalPager).

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: