androidx.wear.compose.foundation.pager

This package provides components for creating multi-page layouts where users can navigate between pages using swipe gestures. Key components include HorizontalPager and VerticalPager, and the rememberPagerState function for managing their state.

These components are recommended for use with Wear Compose Material 3, which also provides HorizontalPagerScaffold, VerticalPagerScaffold, HorizontalPageIndicator, VerticalPageIndicator and AnimatedPage components to achieve the Material 3 design system.

Interfaces

PagerLayoutInfo

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

PagerScope

Classes

PagerState

The state that can be used in conjunction with Wear HorizontalPager and VerticalPager.

Objects

PagerDefaults

Contains the default values used by androidx.compose.foundation.pager.Pager.

Composables

HorizontalPager

A horizontally scrolling Pager optimized for Wear OS devices.

VerticalPager

A vertically scrolling Pager optimized for Wear OS devices.

rememberPagerState

Creates and remember a PagerState to be used with a Wear Pager