Settings

sealed class Settings : JSONFriendly

The abstract parent type of all user-editable Anvil settings.

NOTE All implementations of Settings are expected to use their companion objects act as its associated SettingsType by having the companion object extend SettingsType.

Author

Richard Arriaga

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun saveToDisk(file: File)

Save this ShortcutSettings to the provided file.

Link copied to clipboard
override fun writeTo(writer: JSONWriter)

Properties

Link copied to clipboard
open val jsonFormattedString: String
Link copied to clipboard
open val jsonPrettyPrintedFormattedString: String
Link copied to clipboard
val type: SettingsType<*>

The associated SettingsType. This is expected to be the companion object of the implemented subtype.

Link copied to clipboard
abstract val writeSettingsAction: JSONWriter.() -> Unit

The JSONWriter action that writes the data contained in these Settings to the JSONWriter.

Inheritors

Link copied to clipboard