Package-level declarations

Types

Link copied to clipboard

Position of an item inside a grouped list.

Functions

Link copied to clipboard
fun CheckBoxPreferenceItem(modifier: Modifier = Modifier, icon: ImageVector? = null, title: String, summary: String? = null, checked: Boolean, onCheckedChange: (Boolean) -> Unit, ga4Event: Ga4EventData? = null)

Checkbox preference with caller-owned checked state. Row and checkbox taps emit onCheckedChange; callers handle persistence. Provide a clear title and supporting summary.

Link copied to clipboard
fun <T> ChoicePreferenceItem(title: String, options: List<T>, selected: T, optionLabel: @Composable (T) -> String, onSelect: (T) -> Unit, modifier: Modifier = Modifier, icon: ImageVector? = null, dialogIcon: ImageVector? = icon)

Preference row showing the selected option as its summary. Tapping it opens a radio-choice dialog; selection calls onSelect and closes the dialog.

Link copied to clipboard
fun getGroupedShape(position: GroupedItemPosition, outerRadius: Dp = 16.dp, innerRadius: Dp = 2.dp): RoundedCornerShape

Returns a RoundedCornerShape with adaptive grouped-corner radii based on position.

Link copied to clipboard
fun Modifier.groupedCorners(position: GroupedItemPosition, outerRadius: Dp = 16.dp, innerRadius: Dp = 2.dp): Modifier

Clips an item with adaptive grouped-corner radii based on position.

Link copied to clipboard
Link copied to clipboard
fun Modifier.groupedPreferenceItem(position: GroupedItemPosition, outerRadius: Dp = 16.dp, horizontalPadding: Dp = SizeConstants.LargeSize, singleItemVerticalPadding: Dp = SizeConstants.ExtraTinySize): Modifier

Applies standard grouped-list item spacing and grouped corners in one call.

Link copied to clipboard

Category heading for preference rows, using the current theme's primary color.

Link copied to clipboard
fun PreferenceItem(icon: ImageVector, title: String? = null, summary: String? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, enabled: Boolean = true, rippleEffectDp: Dp = SizeConstants.LargeSize, onClick: () -> Unit = {}, ga4Event: Ga4EventData? = null, ga4EventProvider: () -> Ga4EventData?? = null)
fun PreferenceItem(icon: ToolkitIcon? = null, title: String? = null, summary: String? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, enabled: Boolean = true, rippleEffectDp: Dp = SizeConstants.LargeSize, onClick: () -> Unit = {}, ga4Event: Ga4EventData? = null, ga4EventProvider: () -> Ga4EventData?? = null)

Stateless preference row with Toolkit click feedback and analytics. Supply display-ready text, with title meaningful on its own and summary adding context.

Link copied to clipboard
fun RadioButtonPreferenceItem(modifier: Modifier = Modifier, text: String, isChecked: Boolean, onCheckedChange: (Boolean) -> Unit, enabled: Boolean = true, ga4Event: Ga4EventData? = null)

Radio preference with caller-owned isChecked state. Enabled taps emit the inverse value through onCheckedChange; callers decide how that changes selection. text should identify the option independently of nearby rows.

Link copied to clipboard
fun SettingsPreferenceItem(modifier: Modifier = Modifier, icon: ToolkitIcon? = null, title: String? = null, summary: String? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, rippleEffectDp: Dp = SizeConstants.ExtraTinySize, onClick: () -> Unit = {}, ga4Event: Ga4EventData? = null, ga4EventProvider: () -> Ga4EventData?? = null)

Card container for PreferenceItem, with the same click feedback and analytics contract.

fun SettingsPreferenceItem(icon: ImageVector, modifier: Modifier = Modifier, title: String? = null, summary: String? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, rippleEffectDp: Dp = SizeConstants.ExtraTinySize, onClick: () -> Unit = {}, ga4Event: Ga4EventData? = null, ga4EventProvider: () -> Ga4EventData?? = null)
Link copied to clipboard
fun SwitchCardItem(modifier: Modifier = Modifier, icon: ImageVector? = null, title: String, enabled: Boolean = true, switchState: State<Boolean>, onSwitchToggled: (Boolean) -> Unit, checkIcon: ImageVector = Icons.Filled.Check, ga4Event: Ga4EventData? = null, ga4EventProvider: (Boolean) -> Ga4EventData?? = null)

Switch card with caller-owned switchState. Card and switch taps emit onSwitchToggled; callers handle persistence. title supplies the primary label.

Link copied to clipboard
fun SwitchPreferenceItem(modifier: Modifier = Modifier, icon: ImageVector? = null, title: String, summary: String? = null, checked: Boolean, onCheckedChange: (Boolean) -> Unit, ga4Event: Ga4EventData? = null)

Switch preference with caller-owned checked state. Row and switch taps emit onCheckedChange; callers handle persistence. Use summary to explain the setting's effect.

Link copied to clipboard
fun SwitchPreferenceItemWithDivider(modifier: Modifier = Modifier, icon: ImageVector? = null, title: String, summary: String, checked: Boolean, onCheckedChange: (Boolean) -> Unit, onClick: () -> Unit, onSwitchClick: (Boolean) -> Unit, ga4Event: Ga4EventData? = null)

Preference row with a separately clickable switch. Row taps call onClick; switch changes call onCheckedChange. The caller owns checked and persistence. Use summary to explain what the switch controls.