//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.main.dialog.settings.presentation/SettingsComponent/UiState
UiState
[jvm]
data class UiState(val availableLanguages: List<LanguageModel> = emptyList(), val currentLanguage: LanguageModel? = null, val isLoading: Boolean = false, val similarityThreshold: String = "", val spellcheckEnabled: Boolean = false, val appVersion: String = "", val availableProviders: List<MachineTranslationProvider> = emptyList(), val currentProvider: MachineTranslationProvider? = null, val key: String = "")
UI state for general settings.
Constructors
UiState | [jvm] constructor(availableLanguages: List<LanguageModel> = emptyList(), currentLanguage: LanguageModel? = null, isLoading: Boolean = false, similarityThreshold: String = "", spellcheckEnabled: Boolean = false, appVersion: String = "", availableProviders: List<MachineTranslationProvider> = emptyList(), currentProvider: MachineTranslationProvider? = null, key: String = "") Create SettingsUiState |
Properties
Name | Summary |
---|---|
appVersion | [jvm] val appVersion: String application version |
availableLanguages | [jvm] val availableLanguages: List<LanguageModel> available app languages |
availableProviders | [jvm] val availableProviders: List<MachineTranslationProvider> available Machine Translation providers |
currentLanguage | [jvm] val currentLanguage: LanguageModel? = null current language |
currentProvider | [jvm] val currentProvider: MachineTranslationProvider? = null current MT provider |
isLoading | [jvm] val isLoading: Boolean = false true if there is a background operation in progress |
key | [jvm] val key: String API key |
similarityThreshold | [jvm] val similarityThreshold: String current similarity threshold |
spellcheckEnabled | [jvm] val spellcheckEnabled: Boolean = false true if spelling check is enabled |