PickerGroupScope
class PickerGroupScope
Summary
Public constructors |
|---|
Public functions |
|
|---|---|
Unit |
@ComposableA |
Public constructors
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 Picker in a PickerGroup
| Parameters | |
|---|---|
pickerState: PickerState |
The state of the picker. |
selected: Boolean |
If the |
onSelected: () -> Unit |
Action triggered when the |
modifier: Modifier = Modifier |
|
contentDescription: (() -> String)? = 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 androidx.compose.ui.res.stringResource or similar. |
focusRequester: FocusRequester? = null |
Optional |
readOnlyLabel: (@Composable BoxScope.() -> Unit)? = null |
A slot for providing a label, displayed above the selected option when the |
verticalSpacing: Dp = 0.dp |
The amount of vertical spacing in |
option: @Composable PickerScope.(optionIndex: Int, pickerSelected: Boolean) -> Unit |
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. |