App-Support > healthstack.app.pref > MetaDataStore

MetaDataStore

[androidJvm]
class MetaDataStore(val context: Context)

A class that provides access to the meta data stored in the metaDataStore.

Constructors

MetaDataStore

[androidJvm]
fun MetaDataStore(context: Context)

Functions

Name Summary
clearDataStore

[androidJvm]
suspend fun clearDataStore()
Clears all data from the metaDataStore.

readChangesToken

[androidJvm]
suspend fun readChangesToken(healthDataTypeString: String): String?
Retrieves the changes token for the specified healthDataTypeString from the metaDataStore.

saveChangesToken

[androidJvm]
suspend fun saveChangesToken(healthDataTypeString: String, changesToken: String)
Saves the changes token for the specified healthDataTypeString to the metaDataStore.

Properties

Name Summary
context

[androidJvm]
val context: Context
The Context used to access the metaDataStore.