toggle menu
app
androidJvm
switch theme
search in API
app
/
org.scottishtecharmy.soundscape.datastore
/
DataStoreManager
Data
Store
Manager
class
DataStoreManager
@
Inject
constructor
(
context
:
Context
)
Members
Constructors
Data
Store
Manager
Link copied to clipboard
@
Inject
constructor
(
context
:
Context
)
Types
Preferences
Keys
Link copied to clipboard
object
PreferencesKeys
Functions
get
Value
Link copied to clipboard
suspend
fun
<
T
>
getValue
(
key
:
Preferences.Key
<
T
>
,
defaultValue
:
T
)
:
T
Get a preference value
set
Value
Link copied to clipboard
suspend
fun
<
T
>
setValue
(
key
:
Preferences.Key
<
T
>
,
value
:
T
)
Set a preference value