toggle menu
OpenSRP
androidJvm
switch theme
search in API
engine
/
org.smartregister.fhircore.engine.datastore
/
PreferenceDataStore
Preference
Data
Store
@
Singleton
class
PreferenceDataStore
@
Inject
constructor
(
val
context
:
Context
)
Members
Constructors
Preference
Data
Store
Link copied to clipboard
@
Inject
constructor
(
context
:
Context
)
Types
Keys
Link copied to clipboard
object
Keys
Properties
context
Link copied to clipboard
val
context
:
Context
Functions
read
Link copied to clipboard
fun
<
T
>
read
(
key
:
Preferences.Key
<
T
>
)
:
Flow
<
T
>
write
Link copied to clipboard
suspend
fun
<
T
>
write
(
key
:
Preferences.Key
<
T
>
,
data
:
T
)