# RadioButtonColors

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/RadioButton.kt+class:androidx.compose.material3.RadioButtonColors) Common/AllAndroid/JVM
- Cmn

  ```
  class RadioButtonColors
  ```

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/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. | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors` | `https://developer.android.com/reference/kotlin/androidx/compose/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. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonColors#hashCode()()` | Cmn |

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

## Public constructors

### RadioButtonColors

Cmn

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

create an instance with arbitrary colors. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/RadioButtonDefaults#colors()` for the default implementation that follows Material specifications.

| 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

Cmn

```
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

Cmn

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

### hashCode

Cmn

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

## Public properties

### disabledSelectedColor

Cmn

```
val disabledSelectedColor: Color
```

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

### disabledUnselectedColor

Cmn

```
val disabledUnselectedColor: Color
```

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

### selectedColor

Cmn

```
val selectedColor: Color
```

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

### unselectedColor

Cmn

```
val unselectedColor: Color
```

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