SettingSwitch

data class SettingSwitch(val title: String, val key: String, val summary: String? = null, val defaultValue: Boolean) : Setting

A switch that allows the user to toggle a setting on or off. Value can be accessed from Settings.getBoolean

Parameters

title

The title of the setting.

key

The key of the setting.

summary

The summary of the setting.

defaultValue

The default value of the setting.

Constructors

Link copied to clipboard
constructor(title: String, key: String, summary: String? = null, defaultValue: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
open override val key: String
Link copied to clipboard
val summary: String? = null
Link copied to clipboard
open override val title: String