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

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

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.

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)