App-Support > healthstack.app.pref > SettingPreference
SettingPreference
[androidJvm]
class SettingPreference(context: Context)
A class that handles the application settings using the Android data store.
Parameters
androidJvm
context | The application context |
Constructors
SettingPreference | [androidJvm] fun SettingPreference(context: Context) |
Types
Name | Summary |
---|---|
Companion | [androidJvm] object Companion |
Functions
Name | Summary |
---|---|
setAppStage | [androidJvm] suspend fun setAppStage(stage: AppStage) Sets the current application stage to the given stage. |
setTaskResultSyncTime | [androidJvm] suspend fun setTaskResultSyncTime(taskResultSyncTime: String) |
setTaskSyncTime | [androidJvm] suspend fun setTaskSyncTime(taskSyncTime: String) Sets the task synchronization time to the given taskSyncTime. |
Properties
Name | Summary |
---|---|
appStage | [androidJvm] val appStage: Flow<AppStage> |
taskResultSyncTime | [androidJvm] val taskResultSyncTime: Flow<String> |
taskSyncTime | [androidJvm] val taskSyncTime: Flow<String> |