//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.toolbar.presentation/TranslateToolbarComponent/UiState
UiState
[jvm]
data class UiState(val currentLanguage: LanguageModel? = null, val currentTypeFilter: TranslationUnitTypeFilter = TranslationUnitTypeFilter.ALL, val availableFilters: List<TranslationUnitTypeFilter> = emptyList(), val availableLanguages: List<LanguageModel> = emptyList(), val currentSearch: String = "", val isEditing: Boolean = false)
UI state for the translation toolbar
Constructors
UiState | [jvm] constructor(currentLanguage: LanguageModel? = null, currentTypeFilter: TranslationUnitTypeFilter = TranslationUnitTypeFilter.ALL, availableFilters: List<TranslationUnitTypeFilter> = emptyList(), availableLanguages: List<LanguageModel> = emptyList(), currentSearch: String = "", isEditing: Boolean = false) Create UiState |
Properties
Name | Summary |
---|---|
availableFilters | [jvm] val availableFilters: List<TranslationUnitTypeFilter> available message filters |
availableLanguages | [jvm] val availableLanguages: List<LanguageModel> available languages |
currentLanguage | [jvm] val currentLanguage: LanguageModel? = null currently selected language |
currentSearch | [jvm] val currentSearch: String currently selected search query |
currentTypeFilter | [jvm] val currentTypeFilter: TranslationUnitTypeFilter currently selected message filter |
isEditing | [jvm] val isEditing: Boolean = false a boolean indicating whether a message is being edited |