SettingOnClick

data class SettingOnClick(val title: String, val key: String, val summary: String? = null, val onClick: suspend () -> Unit) : Setting

Represents a setting that can be clicked to perform an action. The SettingsProvider.getSettingItems will be called again after the action is performed.

Constructors

Link copied to clipboard
constructor(title: String, key: String, summary: String? = null, onClick: suspend () -> Unit)

Properties

Link copied to clipboard
open override val key: String

The unique key for the setting.

Link copied to clipboard
val onClick: suspend () -> Unit

The action to perform when the setting is clicked.

Link copied to clipboard
val summary: String? = null

An optional summary for the setting.

Link copied to clipboard
open override val title: String

The title of the setting.