toggle menu
korge-root
5.1.0
android
common
darwin
js
jvm
switch theme
search in API
korge
/
korlibs.korge.service.storage
/
NativeStorage
Native
Storage
android
common
darwin
js
jvm
actual
class
NativeStorage
(
val
views
:
Views
)
:
IStorageWithKeys
expect
class
NativeStorage
(
views
:
Views
)
:
IStorageWithKeys
Cross-platform way of synchronously storing small data
actual
class
NativeStorage
(
views
:
Views
)
:
IStorageWithKeys
actual
class
NativeStorage
(
views
:
Views
)
:
IStorageWithKeys
actual
class
NativeStorage
(
val
views
:
Views
)
:
IStorageWithKeys
Members
Members & Extensions
Constructors
Native
Storage
Link copied to clipboard
android
common
darwin
js
jvm
actual
constructor
(
views
:
Views
)
expect
constructor
(
views
:
Views
)
actual
constructor
(
views
:
Views
)
actual
constructor
(
views
:
Views
)
actual
constructor
(
views
:
Views
)
Properties
file
Link copied to clipboard
jvm
val
file
:
File
folder
Link copied to clipboard
jvm
val
folder
:
File
props
Link copied to clipboard
jvm
val
props
:
Properties
views
Link copied to clipboard
android
jvm
val
views
:
Views
val
views
:
Views
Functions
contains
Link copied to clipboard
operator
fun
IStorage
.
contains
(
key
:
String
)
:
Boolean
get
Link copied to clipboard
operator
fun
IStorage
.
get
(
key
:
String
)
:
String
get
Or
Null
Link copied to clipboard
android
common
darwin
js
jvm
actual
open
override
fun
getOrNull
(
key
:
String
)
:
String
?
expect
open
override
fun
getOrNull
(
key
:
String
)
:
String
?
open
override
fun
getOrNull
(
key
:
String
)
:
String
?
open
override
fun
getOrNull
(
key
:
String
)
:
String
?
actual
open
override
fun
getOrNull
(
key
:
String
)
:
String
?
item
Link copied to clipboard
fun
<
T
>
IStorage
.
item
(
key
:
String
,
serialize
:
(
T
)
->
String
,
deserialize
:
(
String
?
)
->
T
)
:
StorageKey
<
T
>
item
Bool
Link copied to clipboard
fun
IStorage
.
itemBool
(
key
:
String
,
default
:
Boolean
=
false
)
:
StorageKey
<
Boolean
>
item
Double
Link copied to clipboard
fun
IStorage
.
itemDouble
(
key
:
String
,
default
:
Double
=
0.0
)
:
StorageKey
<
Double
>
item
Int
Link copied to clipboard
fun
IStorage
.
itemInt
(
key
:
String
,
default
:
Int
=
0
)
:
StorageKey
<
Int
>
item
String
Link copied to clipboard
fun
IStorage
.
itemString
(
key
:
String
,
default
:
String
=
""
)
:
StorageKey
<
String
>
keys
Link copied to clipboard
android
common
darwin
js
jvm
actual
open
override
fun
keys
(
)
:
List
<
String
>
expect
open
override
fun
keys
(
)
:
List
<
String
>
open
override
fun
keys
(
)
:
List
<
String
>
open
override
fun
keys
(
)
:
List
<
String
>
actual
open
override
fun
keys
(
)
:
List
<
String
>
remove
Link copied to clipboard
android
common
darwin
js
jvm
actual
open
override
fun
remove
(
key
:
String
)
expect
open
override
fun
remove
(
key
:
String
)
open
override
fun
remove
(
key
:
String
)
open
override
fun
remove
(
key
:
String
)
actual
open
override
fun
remove
(
key
:
String
)
remove
All
Link copied to clipboard
android
common
darwin
js
jvm
actual
open
override
fun
removeAll
(
)
expect
open
override
fun
removeAll
(
)
open
override
fun
removeAll
(
)
open
override
fun
removeAll
(
)
actual
open
override
fun
removeAll
(
)
set
Link copied to clipboard
android
common
darwin
js
jvm
actual
open
operator override
fun
set
(
key
:
String
,
value
:
String
)
expect
open
operator override
fun
set
(
key
:
String
,
value
:
String
)
open
operator override
fun
set
(
key
:
String
,
value
:
String
)
open
operator override
fun
set
(
key
:
String
,
value
:
String
)
actual
open
operator override
fun
set
(
key
:
String
,
value
:
String
)
to
Map
Link copied to clipboard
android
common
darwin
js
jvm
open
fun
toMap
(
)
:
Map
<
String
,
String
?
>
open
fun
toMap
(
)
:
Map
<
String
,
String
?
>
open
override
fun
toMap
(
)
:
Map
<
String
,
String
?
>
open
override
fun
toMap
(
)
:
Map
<
String
,
String
?
>
open
fun
toMap
(
)
:
Map
<
String
,
String
?
>
to
String
Link copied to clipboard
android
jvm
open
override
fun
toString
(
)
:
String
open
override
fun
toString
(
)
:
String