Object

CheckboxDefaults

Contains the default values used by CheckBox.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object CheckboxDefaults

Contains the default values used by CheckBox.

Functions

colors

@Composable
public fun colors(checkedColor: ColorProvider, uncheckedColor: ColorProvider): CheckBoxColors

Parameters

checkedColor the ColorProvider to use when the check box is checked.
uncheckedColor the ColorProvider to use when the check box is not checked.

Returns

CheckBoxColors that uses checkedColor or uncheckedColor depending on the checked state of the CheckBox.

checkBoxColors

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public fun checkBoxColors(
    checkedColor: ColorProvider,
    uncheckedColor: ColorProvider,
): CheckBoxColors

colors

@Composable
public fun colors(checkedColor: Color, uncheckedColor: Color): CheckBoxColors

Parameters

checkedColor the Color to use when the check box is checked.
uncheckedColor the Color to use when the check box is not checked.

Returns

CheckBoxColors that uses checkedColor or uncheckedColor depending on the checked state of the CheckBox.

colors

@Composable
public fun colors(): CheckBoxColors

Creates a default CheckBoxColors.

Returns

default CheckBoxColors.