androidx.compose.foundation.pager

PageSize

Interface · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

This is used to determine how Pages are laid out in Pager. By changing the size of the pages one can change how many pages are shown.

interface PageSize

Kinds of PageSize

Anywhere a PageSize is expected, you can pass any of these.

How to get one

Or create one of the kinds listed above.

Used by

Parameters that take a PageSize.

Functions

calculateMainAxisPageSize

fun Density.calculateMainAxisPageSize(availableSpace: Int, pageSpacing: Int): Int

Based on availableSpace pick a size for the pages

Nested types

Library docs

This is used to determine how Pages are laid out in Pager. By changing the size of the pages one can change how many pages are shown.

Please refer to the sample to learn how to use this API.