<h2 id="rememberpickerstate-shouldrepeatoptions">rememberPickerState</h2>

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

```kotlin
@Composable
public fun rememberPickerState(
    @IntRange(from = 1) initialNumberOfOptions: Int,
    @IntRange(from = 0) initiallySelectedIndex: Int = 0,
    shouldRepeatOptions: Boolean = true,
): PickerState
```

Creates a [PickerState](/jetpack-compose/androidx.wear.compose/compose-material3/classes/PickerState) that is remembered across compositions.

#### Parameters

| | |
| --- | --- |
| initialNumberOfOptions | the number of options. |
| initiallySelectedIndex | the index of the option to show in the center at the start, zero-based. |
| shouldRepeatOptions | if true (the default), the options will be repeated. |