kobweb
Toggle table of contents
0.21.1
js
Platform filter
js
Switch theme
Search in API
kobweb
browser-ext
/
com.varabyte.kobweb.browser.storage
/
StorageKey
Storage
Key
abstract
class
StorageKey
<
T
>
(
val
name
:
String
,
val
defaultValue
:
T
?
=
null
)
(
source
)
A key which can be used to read and write type-safe values to / from a
Storage
object.
Inheritors
StringStorageKey
BooleanStorageKey
ByteStorageKey
ShortStorageKey
IntStorageKey
LongStorageKey
FloatStorageKey
DoubleStorageKey
EnumStorageKey
Members
Constructors
Storage
Key
Link copied to clipboard
constructor
(
name
:
String
,
defaultValue
:
T
?
=
null
)
Properties
default
Value
Link copied to clipboard
val
defaultValue
:
T
?
=
null
name
Link copied to clipboard
val
name
:
String
Functions
convert
From
String
Link copied to clipboard
abstract
fun
convertFromString
(
value
:
String
)
:
T
?
convert
To
String
Link copied to clipboard
abstract
fun
convertToString
(
value
:
T
)
:
String