# PickerGroupScope

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/PickerGroup.kt+class:androidx.wear.compose.material3.PickerGroupScope) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
class PickerGroupScope
```

<br />

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerGroupScope#PickerGroupScope()()` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerGroupScope#PickerGroupItem(androidx.wear.compose.material3.PickerState,kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.focus.FocusRequester,kotlin.Function1,androidx.compose.ui.unit.Dp,kotlin.Function3)( pickerState: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerState, selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, onSelected: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, contentDescription: (() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)?, focusRequester: https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusRequester?, readOnlyLabel: (@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/BoxScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, verticalSpacing: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, option: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerScope.(optionIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, pickerSelected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` A `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)` in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerGroup.composable#PickerGroup(androidx.compose.ui.Modifier,androidx.wear.compose.material3.PickerState,kotlin.Boolean,kotlin.Boolean,kotlin.Function1)` |

## Public constructors

### PickerGroupScope

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
PickerGroupScope()
```

## Public functions

### PickerGroupItem

```
@Composable
fun PickerGroupItem(
    pickerState: PickerState,
    selected: Boolean,
    onSelected: () -> Unit,
    modifier: Modifier = Modifier,
    contentDescription: (() -> String)? = null,
    focusRequester: FocusRequester? = null,
    readOnlyLabel: (@Composable BoxScope.() -> Unit)? = null,
    verticalSpacing: Dp = 0.dp,
    option: @Composable PickerScope.(optionIndex: Int, pickerSelected: Boolean) -> Unit
): Unit
```

A `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)` in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerGroup.composable#PickerGroup(androidx.compose.ui.Modifier,androidx.wear.compose.material3.PickerState,kotlin.Boolean,kotlin.Boolean,kotlin.Function1)`

| Parameters |
|---|---|
| `pickerState: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerState` | The state of the picker. |
| `selected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | If the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)` is selected. |
| `onSelected: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | Action triggered when the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)` is selected by clicking. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)`. |
| `contentDescription: (() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null` | A block which computes text used by accessibility services to describe what the selected option represents. This text should be localized, such as by using `https://developer.android.com/reference/kotlin/androidx/compose/ui/res/stringResource.composable#stringResource(kotlin.Int)` or similar. |
| `focusRequester: https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusRequester? = null` | Optional `https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusRequester` for the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)`. If not provided, a local instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusRequester` will be created to handle the focus between different pickers. If it is provided, the caller is responsible for handling the focus. |
| `readOnlyLabel: (@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/BoxScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = null` | A slot for providing a label, displayed above the selected option when the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/Picker.composable#Picker(androidx.wear.compose.material3.PickerState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,kotlin.Float,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.wear.compose.foundation.rotary.RotaryScrollableBehavior,kotlin.Function2)` is read-only. The label is overlaid with the currently selected option within a Box, so it is recommended that the label is given `https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment#TopCenter()`. |
| `verticalSpacing: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = 0.dp` | The amount of vertical spacing in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` between items. Can be negative, which can be useful for Text if it has plenty of whitespace. |
| `option: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/PickerScope.(optionIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, pickerSelected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | A block which describes the content. The integer parameter to the composable denotes the index of the option and boolean denotes whether the picker is selected or not. |