ApplicationConfiguration

@Serializable
data class ApplicationConfiguration(var appId: String, var configType: String = ConfigType.Application.name, val appTitle: String = "", val remoteSyncPageSize: Int = 100, val languages: List<String> = listOf("en"), val useDarkTheme: Boolean = false, val syncInterval: Long = 15, val syncStrategy: List<SyncStrategy> = listOf(), val loginConfig: LoginConfig = LoginConfig(), val deviceToDeviceSync: DeviceToDeviceSyncConfig? = null, val snackBarTheme: SnackBarThemeConfig = SnackBarThemeConfig(), val reportRepeatTime: String = "", val taskStatusUpdateJobDuration: String = "PT15M", val taskExpireJobDuration: String = "PT30M", val taskCompleteCarePlanJobDuration: String = "PT60M", val showLogo: Boolean = true, val taskBackgroundWorkerBatchSize: Int = 500, val eventWorkflows: List<EventWorkflow> = emptyList(), val settingsScreenMenuOptions: List<SettingsOptions> = listOf( SettingsOptions.MANUAL_SYNC, SettingsOptions.SWITCH_LANGUAGES, SettingsOptions.RESET_DATA, SettingsOptions.INSIGHTS, ), val logGpsLocation: List<LocationLogOptions> = emptyList(), val usePractitionerAssignedLocationOnSync: Boolean = true, val navigationStartDestination: NavigationStartDestinationConfig = NavigationStartDestinationConfig( launcherType = LauncherType.REGISTER, id = null, ), val codingSystems: List<CodingSystemConfig> = emptyList(), var dateFormat: String = DEFAULT_FORMAT_SDF_DD_MM_YYYY) : Configuration

Constructors

Link copied to clipboard
constructor(appId: String, configType: String = ConfigType.Application.name, appTitle: String = "", remoteSyncPageSize: Int = 100, languages: List<String> = listOf("en"), useDarkTheme: Boolean = false, syncInterval: Long = 15, syncStrategy: List<SyncStrategy> = listOf(), loginConfig: LoginConfig = LoginConfig(), deviceToDeviceSync: DeviceToDeviceSyncConfig? = null, snackBarTheme: SnackBarThemeConfig = SnackBarThemeConfig(), reportRepeatTime: String = "", taskStatusUpdateJobDuration: String = "PT15M", taskExpireJobDuration: String = "PT30M", taskCompleteCarePlanJobDuration: String = "PT60M", showLogo: Boolean = true, taskBackgroundWorkerBatchSize: Int = 500, eventWorkflows: List<EventWorkflow> = emptyList(), settingsScreenMenuOptions: List<SettingsOptions> = listOf( SettingsOptions.MANUAL_SYNC, SettingsOptions.SWITCH_LANGUAGES, SettingsOptions.RESET_DATA, SettingsOptions.INSIGHTS, ), logGpsLocation: List<LocationLogOptions> = emptyList(), usePractitionerAssignedLocationOnSync: Boolean = true, navigationStartDestination: NavigationStartDestinationConfig = NavigationStartDestinationConfig( launcherType = LauncherType.REGISTER, id = null, ), codingSystems: List<CodingSystemConfig> = emptyList(), dateFormat: String = DEFAULT_FORMAT_SDF_DD_MM_YYYY)

Properties

Link copied to clipboard
open override var appId: String

Unique identifier for the application to which this configurations is applied

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var configType: String

Used to categorize multiple configurations of the same type. E.g. two RegisterViewConfigurations used in an application with two registers.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val resourceType: String? = null

Optional FHIR resource type

Link copied to clipboard
val showLogo: Boolean = true
Link copied to clipboard
Link copied to clipboard
val syncInterval: Long = 15
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val useDarkTheme: Boolean = false