Object

RadioButtonDefaults

Contains the default values used by RadioButton.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object RadioButtonDefaults

Contains the default values used by RadioButton.

Functions

colors

public fun colors(
        checkedColor: ColorProvider,
        uncheckedColor: ColorProvider,
    ): RadioButtonColors

Creates a RadioButtonColors using ColorProviders.

Parameters

checkedColor the tint to apply to the radio button when it is checked.
uncheckedColor the tint to apply to the radio button when it is not checked.

Returns

RadioButtonColors to tint the drawable of the RadioButton according to the checked state.

colors

public fun colors(checkedColor: Color, uncheckedColor: Color): RadioButtonColors

Creates a RadioButtonColors using FixedColorProviders for the given colors.

Parameters

checkedColor the Color to use when the RadioButton is checked
uncheckedColor the Color to use when the RadioButton is not checked

Returns

RadioButtonColors to tint the drawable of the RadioButton according to the checked state.

colors

@Composable
public fun colors(): RadioButtonColors

Creates a default RadioButtonColors

Returns

default RadioButtonColors.