MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.messages.presentation/MessageListComponent/UiState

UiState

[jvm]
data class UiState(val units: List<TranslationUnit> = emptyList(), val editingIndex: Int? = null, val currentLanguage: LanguageModel? = null, val editingEnabled: Boolean = true, val updateTextSwitch: Boolean = false, val canFetchMore: Boolean = true, val isLoading: Boolean = false, val isShowingGlobalProgress: Boolean = false, val spellingErrors: List<SpellCheckCorrection> = emptyList())

Message list UI state.

Constructors

   
UiState [jvm]
constructor(units: List<TranslationUnit> = emptyList(), editingIndex: Int? = null, currentLanguage: LanguageModel? = null, editingEnabled: Boolean = true, updateTextSwitch: Boolean = false, canFetchMore: Boolean = true, isLoading: Boolean = false, isShowingGlobalProgress: Boolean = false, spellingErrors: List<SpellCheckCorrection> = emptyList())
Create UiState

Properties

Name Summary
canFetchMore [jvm]
val canFetchMore: Boolean = true
flag indicating whether there are more messages to fetch
currentLanguage [jvm]
val currentLanguage: LanguageModel? = null
current language
editingEnabled [jvm]
val editingEnabled: Boolean = true
flag indicating whether editing should be allowed
editingIndex [jvm]
val editingIndex: Int? = null
index of the message being edited
isLoading [jvm]
val isLoading: Boolean = false
flag indicating whether loading is in progress
isShowingGlobalProgress [jvm]
val isShowingGlobalProgress: Boolean = false
flag indicating whether a global background operation is in progress
spellingErrors [jvm]
val spellingErrors: List<SpellCheckCorrection>
list of spelling error detected and the corresponding corrections
units [jvm]
val units: List<TranslationUnit>
list of translation units
updateTextSwitch [jvm]
val updateTextSwitch: Boolean = false
flag to trigger text updates for the current segment programmatically