Companion

object Companion : SettingsType<ShortcutSettings>

The ShortcutSettings.Companion is also a SettingsType parameterized on ShortcutSettings.

Functions

Link copied to clipboard
open override fun extract(obj: JSONObject): ShortcutSettings

Extract the Type from the provided JSONObject.

Link copied to clipboard
fun extractAndProcess(obj: JSONObject, then: (ShortcutSettings?, Throwable?) -> Unit)

Extract the Type from the provided JSONObject and pass it to the provided lambda.

Link copied to clipboard
fun readEnvOverrides(): ShortcutSettings
Link copied to clipboard
fun readFromFile(file: File): ShortcutSettings?

Extract the ShortcutSettings from the provided Settings.

Properties

Link copied to clipboard
val allowsDuplicates: Boolean

true if this SettingsType allows multiple Settings of this type to be exported to the same settings file; false otherwise.

Link copied to clipboard
val key: String

The String key that uniquely identifies the associated Settings.