toggle menu
OpenSRP
androidJvm
switch theme
search in API
engine
/
org.smartregister.fhircore.engine.datastore
/
ProtoDataStore
Proto
Data
Store
@
Singleton
class
ProtoDataStore
@
Inject
constructor
(
val
context
:
Context
)
Members
Constructors
Proto
Data
Store
Link copied to clipboard
@
Inject
constructor
(
context
:
Context
)
Properties
context
Link copied to clipboard
val
context
:
Context
location
Coordinates
Link copied to clipboard
val
locationCoordinates
:
Flow
<
LocationCoordinate
>
practitioner
Link copied to clipboard
val
practitioner
:
Flow
<
PractitionerDetails
>
user
Info
Link copied to clipboard
val
userInfo
:
Flow
<
UserInfo
>
Functions
write
Location
Coordinates
Link copied to clipboard
suspend
fun
writeLocationCoordinates
(
locationCoordinatesDetails
:
LocationCoordinate
)
write
Practitioner
Link copied to clipboard
suspend
fun
writePractitioner
(
practitionerDetails
:
PractitionerDetails
)
write
User
Info
Link copied to clipboard
suspend
fun
writeUserInfo
(
userInfo
:
UserInfo
)