toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.korge.service.storage
/
StorageKey
Storage
Key
class
StorageKey
<
T
>
(
val
storage
:
IStorage
,
val
key
:
String
,
val
serialize
:
(
T
)
->
String
,
val
deserialize
:
(
String
?
)
->
T
)
:
IStorageKey
<
T
>
Members
Constructors
Storage
Key
Link copied to clipboard
constructor
(
storage
:
IStorage
,
key
:
String
,
serialize
:
(
T
)
->
String
,
deserialize
:
(
String
?
)
->
T
)
Properties
deserialize
Link copied to clipboard
val
deserialize
:
(
String
?
)
->
T
is
Defined
Link copied to clipboard
open
override
val
isDefined
:
Boolean
key
Link copied to clipboard
val
key
:
String
serialize
Link copied to clipboard
val
serialize
:
(
T
)
->
String
storage
Link copied to clipboard
val
storage
:
IStorage
value
Link copied to clipboard
open
override
var
value
:
T
Functions
get
Value
Link copied to clipboard
open
operator
fun
getValue
(
t
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
set
Value
Link copied to clipboard
open
operator
fun
setValue
(
t
:
Any
?
,
property
:
KProperty
<
*
>
,
value
:
T
)