SettingsPreference

data class SettingsPreference(val key: String? = null, val icon: ToolkitIcon? = null, val useIconContainer: Boolean = false, val iconColor: Color? = null, val iconContainerColor: Color? = null, val title: String? = null, val summary: String? = null, val destination: NavKey? = null, val action: () -> Boolean? = null)(source)

One row of a settings list.

Constructors

Link copied to clipboard
constructor(key: String? = null, icon: ToolkitIcon? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, title: String? = null, summary: String? = null, destination: NavKey? = null, action: () -> Boolean? = null)

Properties

Link copied to clipboard
val action: () -> Boolean?

Something the row does outside the app, such as opening the system's notification settings. It returns whether it handled the click; when it did not, the row opens destination instead, so a system screen that is missing falls back to the app's own page.

Link copied to clipboard

The page the row opens, such as DisplaySettingsRoute. In a list page it opens beside the list on wide windows when the page is a detail.

Link copied to clipboard

Any ToolkitIcon, the same icon type the shell's navigation takes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String?

Identifies the row for analytics and as the list item key.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard