toggle menu
NavigationApp
androidJvm
switch theme
search in API
navigation-ux-storage
/
com.mapbox.dash.sdk.storage.data.datasource.storage
/
StorageImpl
Storage
Impl
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP_PREFIX
]
)
class
StorageImpl
(
context
:
Context
,
fileName
:
String
,
shouldLogChanges
:
Boolean
=
false
)
:
Storage
Members
Members & Extensions
Constructors
Storage
Impl
Link copied to clipboard
constructor
(
context
:
Context
,
fileName
:
String
,
shouldLogChanges
:
Boolean
=
false
)
Functions
clear
Link copied to clipboard
open
override
fun
clear
(
)
get
Link copied to clipboard
open
override
fun
<
T
>
get
(
key
:
String
,
serializer
:
KSerializer
<
T
>
)
:
T
?
on
Value
Changed
Link copied to clipboard
open
override
fun
<
T
>
onValueChanged
(
key
:
String
,
serializer
:
KSerializer
<
T
>
)
:
Flow
<
T
?
>
on
Value
Changed
Link copied to clipboard
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP_PREFIX
]
)
fun
<
R
,
T
:
R
>
Storage
.
onValueChanged
(
key
:
String
,
serializer
:
KSerializer
<
T
>
,
defaultValue
:
R
)
:
Flow
<
R
>
put
Link copied to clipboard
open
override
fun
<
T
>
put
(
key
:
String
,
serializer
:
KSerializer
<
T
>
,
obj
:
T
)
remove
Link copied to clipboard
open
override
fun
remove
(
key
:
String
)