# RemoteSplitRadioButton

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/RemoteSplitRadioButton.composable#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)( selected: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteBoolean, onSelectionClick: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/action/RemoteAction, selectionContentDescription: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteString?, onContainerClick: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/action/RemoteAction, modifier: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/modifier/RemoteModifier, enabled: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteBoolean, shape: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/shapes/RemoteShape, colors: https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/RemoteSplitRadioButtonColors, contentPadding: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemotePaddingValues, secondaryLabel: (@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteRowScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, label: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteRowScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` The Wear Material SplitRadioButton offers two slots and shows the current selection state via a radio control. |

## Functions

### RemoteSplitRadioButton

Artifact: [androidx.wear.compose.remote:remote-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/remote/material3/RemoteSplitRadioButton.kt+function:RemoteSplitRadioButton)

```
@RemoteComposable
@Composable
fun RemoteSplitRadioButton(
    selected: RemoteBoolean,
    onSelectionClick: RemoteAction,
    selectionContentDescription: RemoteString?,
    onContainerClick: RemoteAction,
    modifier: RemoteModifier = RemoteModifier,
    enabled: RemoteBoolean = true.rb,
    shape: RemoteShape = RemoteSplitRadioButtonDefaults.shape,
    colors: RemoteSplitRadioButtonColors = RemoteSplitRadioButtonDefaults.splitRadioButtonColors(),
    contentPadding: RemotePaddingValues = RemoteSplitRadioButtonDefaults.ContentPadding,
    secondaryLabel: (@Composable @RemoteComposable RemoteRowScope.() -> Unit)? = null,
    label: @Composable @RemoteComposable RemoteRowScope.() -> Unit
): Unit
```

The Wear Material SplitRadioButton offers two slots and shows the current selection state via a radio control.

The `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/RemoteSplitRadioButton.composable#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)` is essentially a `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteRow.composable#RemoteRow(androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.layout.RemoteArrangement.Horizontal,androidx.compose.remote.creation.compose.layout.RemoteAlignment.Vertical,kotlin.Function1)` with two split areas. The first area containing `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/package-summary#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)` and optional `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/package-summary#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)` is clickable and triggers `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/package-summary#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)`. The second area contains a radio selection control and triggers `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/package-summary#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)`.

```kotlin
import androidx.compose.remote.creation.compose.action.valueChange
import androidx.compose.remote.creation.compose.state.MutableRemoteBoolean
import androidx.compose.remote.creation.compose.state.rs
import androidx.compose.runtime.remember
import androidx.wear.compose.remote.material3.RemoteSplitRadioButton
import androidx.wear.compose.remote.material3.RemoteText

val selected = remember { MutableRemoteBoolean(true) }

RemoteSplitRadioButton(
    selected = selected,
    onSelectionClick = valueChange(selected, !selected),
    selectionContentDescription = "Split Radio".rs,
    onContainerClick = valueChange(selected, !selected),
    modifier = modifier,
    label = { RemoteText("Split Radio".rs) },
)
```

| Parameters |
|---|---|
| `selected: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteBoolean` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteBoolean` flag indicating whether this button is currently selected. |
| `onSelectionClick: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/action/RemoteAction` | RemoteAction to be invoked when the selection control is clicked. |
| `selectionContentDescription: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteString?` | Text used by accessibility services to describe what this selection control represents. |
| `onContainerClick: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/action/RemoteAction` | RemoteAction to be invoked when the container area is clicked. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/modifier/RemoteModifier = RemoteModifier` | `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/modifier/RemoteModifier` to be applied to the button. |
| `enabled: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/state/RemoteBoolean = true.rb` | Controls the enabled state of the button. When `false`, this button will appear visually disabled and will not be clickable. Note that only constant values are currently supported for `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/package-summary#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)` for click handling. |
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/shapes/RemoteShape = RemoteSplitRadioButtonDefaults.shape` | Defines the button's shape. It is recommended to use the default shape. |
| `colors: https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/RemoteSplitRadioButtonColors = RemoteSplitRadioButtonDefaults.splitRadioButtonColors()` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/RemoteSplitRadioButtonColors` that will be used to resolve the container and content colors for this button in different states. |
| `contentPadding: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemotePaddingValues = RemoteSplitRadioButtonDefaults.ContentPadding` | The spacing values to apply internally between the container and the content. |
| `secondaryLabel: (@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteRowScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = null` | A slot for a secondary label, displayed below the `https://developer.android.com/reference/kotlin/androidx/wear/compose/remote/material3/package-summary#RemoteSplitRadioButton(androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.state.RemoteString,androidx.compose.remote.creation.compose.action.RemoteAction,androidx.compose.remote.creation.compose.modifier.RemoteModifier,androidx.compose.remote.creation.compose.state.RemoteBoolean,androidx.compose.remote.creation.compose.shapes.RemoteShape,androidx.wear.compose.remote.material3.RemoteSplitRadioButtonColors,androidx.compose.remote.creation.compose.layout.RemotePaddingValues,kotlin.Function1,kotlin.Function1)`. |
| `label: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteRowScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | A slot for the main label content. |