SettingsKey

sealed class SettingsKey<T>

Type-safe key for a navigation setting.

Each subtype maps to a specific primitive type in SettingsStorage.

Parameters

T

the value type this key represents

key

the string identifier used for storage

defaultValue

the value returned when no stored value exists

Inheritors

Types

Link copied to clipboard
class BooleanKey(key: String, defaultValue: Boolean) : SettingsKey<Boolean>
Link copied to clipboard
object Companion
Link copied to clipboard
class EnumKey<E : Enum<E>>(key: String, defaultValue: E, enumClass: Class<E>) : SettingsKey<E>
Link copied to clipboard
class EnumSetKey<E : Enum<E>>(key: String, defaultValue: Set<E>, enumClass: Class<E>) : SettingsKey<Set<E>>
Link copied to clipboard
class FloatKey(key: String, defaultValue: Float) : SettingsKey<Float>
Link copied to clipboard
class IntKey(key: String, defaultValue: Int) : SettingsKey<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class StringKey(key: String, defaultValue: String) : SettingsKey<String>

Properties

Link copied to clipboard
Link copied to clipboard
val key: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int