SwitchRow

@Composable
fun SwitchRow(active: Boolean, title: String, modifier: Modifier = Modifier, onActivate: () -> Unit = {}, activatable: Boolean = true, titleSelectable: Boolean = false, useMarkup: Boolean = true, useUnderline: Boolean = false, subtitle: String? = null, subtitleLines: Int = 0, subtitleSelectable: Boolean = false, titleLines: Int = 0)

Creates a org.gnome.adw.ActionRow, a list box row that contains a switch.

org.gnome.adw.SwitchRow is a child of org.gnome.adw.ActionRow and org.gnome.adw.PreferencesRow which are usually used for preferences/settings inside and application.

Parameters

active

Whether the switch is active.

title

The title for this row.

modifier

Compose Modifier for layout and styling.

onActivate

Callback triggered when this row is activated.

activatable

Whether the component can be activated.

titleSelectable

Whether the title is selectable.

useMarkup

Whether to use Pango markup for the title and subtitle.

useUnderline

Whether an embedded underline in the title or subtitle indicates a mnemonic.

subtitle

The subtitle for this row.

subtitleLines

The number of lines at the end of which the subtitle label will be ellipsized.

subtitleSelectable

Whether the subtitle is selectable.

titleLines

The number of lines at the end of which the title label will be ellipsized.