# RadioButtonColors

Artifact: [androidx.tv:tv-material](https://developer.android.com/jetpack/androidx/releases/tv) [View Source](https://cs.android.com/search?q=file:androidx/tv/material3/RadioButton.kt+class:androidx.tv.material3.RadioButtonColors) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)


```
class RadioButtonColors
```

<br />

*** ** * ** ***

Represents the color used by a `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButton.composable#RadioButton(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.tv.material3.RadioButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource)` in different states.

See `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonDefaults#colors()` for the default implementation that follows Material specifications.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#RadioButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( selectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, unselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledSelectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledUnselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` create an instance with arbitrary colors. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( selectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, unselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledSelectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledUnselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this SelectableChipColors, optionally overriding some of the values. |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#disabledSelectedColor()` the color to use for the RadioButton when disabled and selected. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#disabledUnselectedColor()` the color to use for the RadioButton when disabled and not selected. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#selectedColor()` the color to use for the RadioButton when selected and enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/RadioButtonColors#unselectedColor()` the color to use for the RadioButton when unselected and enabled. |

## Public constructors

### RadioButtonColors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tv#1.1.0)

```
RadioButtonColors(
    selectedColor: Color,
    unselectedColor: Color,
    disabledSelectedColor: Color,
    disabledUnselectedColor: Color
)
```

create an instance with arbitrary colors.

| Parameters |
|---|---|
| `selectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color to use for the RadioButton when selected and enabled. |
| `unselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color to use for the RadioButton when unselected and enabled. |
| `disabledSelectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color to use for the RadioButton when disabled and selected. |
| `disabledUnselectedColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color to use for the RadioButton when disabled and not selected. |

## Public functions

### copy

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tv#1.1.0)

```
fun copy(
    selectedColor: Color = this.selectedColor,
    unselectedColor: Color = this.unselectedColor,
    disabledSelectedColor: Color = this.disabledSelectedColor,
    disabledUnselectedColor: Color = this.disabledUnselectedColor
): RadioButtonColors
```

Returns a copy of this SelectableChipColors, optionally overriding some of the values. This uses the Color.Unspecified to mean "use the value from the source"

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### disabledSelectedColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val disabledSelectedColor: Color
```

the color to use for the RadioButton when disabled and selected.

### disabledUnselectedColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val disabledUnselectedColor: Color
```

the color to use for the RadioButton when disabled and not selected.

### selectedColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val selectedColor: Color
```

the color to use for the RadioButton when selected and enabled.

### unselectedColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val unselectedColor: Color
```

the color to use for the RadioButton when unselected and enabled.