---
title: "rememberRemotePageIndicatorState"
description: "Creates and remembers a [RemotePageIndicatorState]."
type: "composable"
---
## API Reference

### rememberRemotePageIndicatorState

> Source set: Android

```kotlin
@Composable
public fun rememberRemotePageIndicatorState(
    pageCount: Int,
    selectedPage: RemoteInt = 0.ri,
    pageOffset: RemoteFloat = 0f.rf,
): RemotePageIndicatorState
```

Creates and remembers a [RemotePageIndicatorState](/jetpack-compose/androidx.wear.compose.remote/remote-material3/interfaces/RemotePageIndicatorState/api).

#### Parameters

| | |
| --- | --- |
| selectedPage | The currently selected page index. |
| pageCount | Total number of pages. |
| pageOffset | The current offset from the start of the selected page, as a ratio of the page width. |
