toggle menu
Cloudstream
cloudstream
switch theme
search in API
Cloudstream
/
com.lagradost.cloudstream3.utils
/
DataStore
Data
Store
object
DataStore
(
source
)
Members
Properties
mapper
Link copied to clipboard
val
mapper
:
JsonMapper
Functions
contains
Key
Link copied to clipboard
fun
Context
.
containsKey
(
path
:
String
)
:
Boolean
fun
Context
.
containsKey
(
folder
:
String
,
path
:
String
)
:
Boolean
editor
Link copied to clipboard
fun
editor
(
context
:
Context
,
isEditingAppSettings
:
Boolean
=
false
)
:
Editor
get
Default
Shared
Prefs
Link copied to clipboard
fun
Context
.
getDefaultSharedPrefs
(
)
:
SharedPreferences
get
Folder
Name
Link copied to clipboard
fun
getFolderName
(
folder
:
String
,
path
:
String
)
:
String
get
Key
Link copied to clipboard
inline
fun
<
T
:
Any
>
Context
.
getKey
(
path
:
String
)
:
T
?
inline
fun
<
T
:
Any
>
Context
.
getKey
(
path
:
String
,
defVal
:
T
?
)
:
T
?
fun
<
T
>
Context
.
getKey
(
path
:
String
,
valueType
:
Class
<
T
>
)
:
T
?
inline
fun
<
T
:
Any
>
Context
.
getKey
(
folder
:
String
,
path
:
String
)
:
T
?
inline
fun
<
T
:
Any
>
Context
.
getKey
(
folder
:
String
,
path
:
String
,
defVal
:
T
?
)
:
T
?
get
Keys
Link copied to clipboard
fun
Context
.
getKeys
(
folder
:
String
)
:
List
<
String
>
get
Shared
Prefs
Link copied to clipboard
fun
Context
.
getSharedPrefs
(
)
:
SharedPreferences
remove
Key
Link copied to clipboard
fun
Context
.
removeKey
(
path
:
String
)
fun
Context
.
removeKey
(
folder
:
String
,
path
:
String
)
remove
Keys
Link copied to clipboard
fun
Context
.
removeKeys
(
folder
:
String
)
:
Int
set
Key
Link copied to clipboard
fun
<
T
>
Context
.
setKey
(
path
:
String
,
value
:
T
)
fun
<
T
>
Context
.
setKey
(
folder
:
String
,
path
:
String
,
value
:
T
)
to
Kotlin
Object
Link copied to clipboard
inline
fun
<
T
:
Any
>
String
.
toKotlinObject
(
)
:
T
fun
<
T
>
String
.
toKotlinObject
(
valueType
:
Class
<
T
>
)
:
T