# PageSize.Fixed

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/pager/PageSize.kt+class:androidx.compose.foundation.pager.PageSize.Fixed) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0) Common/All
- Cmn

  ```
  class PageSize.Fixed : PageSize
  ```

*** ** * ** ***

Multiple pages in a viewport

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize.Fixed#Fixed(androidx.compose.ui.unit.Dp)(pageSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density.https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize.Fixed#(androidx.compose.ui.unit.Density).calculateMainAxisPageSize(kotlin.Int,kotlin.Int)(availableSpace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, pageSpacing: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Based on `https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize#(androidx.compose.ui.unit.Density).calculateMainAxisPageSize(kotlin.Int,kotlin.Int)` pick a size for the pages | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize.Fixed#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize.Fixed#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize.Fixed#pageSize()` A fixed size for pages | Cmn |

## Public constructors

### Fixed

Cmn Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.9.0)

```
Fixed(pageSize: Dp)
```

| Parameters |
|---|---|
| `pageSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | A fixed size for pages |

## Public functions

### Density.calculateMainAxisPageSize

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/pager/PageSize.kt+function:calculateMainAxisPageSize)

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

Based on `https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/PageSize#(androidx.compose.ui.unit.Density).calculateMainAxisPageSize(kotlin.Int,kotlin.Int)` pick a size for the pages

| Parameters |
|---|---|
| `availableSpace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The amount of space in pixels the pages in this Pager can use. |
| `pageSpacing: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The amount of space in pixels used to separate pages. |

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### pageSize

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0)

```
val pageSize: Dp
```

A fixed size for pages