---
title: "rememberPagerState"
description: "Creates and remember a [PagerState] to be used with a Wear Pager"
type: "composable"
---

<div class='type'>Composable Function</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@Composable
public fun rememberPagerState(
    @IntRange(from = 0) initialPage: Int = 0,
    @FloatRange(from = -0.5, to = 0.5) initialPageOffsetFraction: Float = 0f,
    @IntRange(from = 1) pageCount: () -> Int,
): PagerState
```


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

#### Parameters

| | |
| --- | --- |
| initialPage | The page that should be shown first. |
| initialPageOffsetFraction | The offset of the initial page as a fraction of the page size. This should vary between -0.5 and 0.5 and indicates how to offset the initial page from the snapped position. |
| pageCount | The number of pages this Pager will have. |





