MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.main.presentation/RootComponent/UiState

UiState

[jvm]
data class UiState(val activeProject: ProjectModel? = null, val isEditing: Boolean = false, val currentLanguage: LanguageModel? = null, val isLoading: Boolean = false, val isSaveEnabled: Boolean = false)

Root UI state.

Constructors

   
UiState [jvm]
constructor(activeProject: ProjectModel? = null, isEditing: Boolean = false, currentLanguage: LanguageModel? = null, isLoading: Boolean = false, isSaveEnabled: Boolean = false)
Create UiState

Properties

Name Summary
activeProject [jvm]
val activeProject: ProjectModel? = null
project currently opened
currentLanguage [jvm]
val currentLanguage: LanguageModel? = null
current language selected in the toolbar
isEditing [jvm]
val isEditing: Boolean = false
flag indicating whether any message is being edited
isLoading [jvm]
val isLoading: Boolean = false
flag indicating whether there is an operation running in the background
isSaveEnabled [jvm]
val isSaveEnabled: Boolean = false
flag indicating whether the save menu action should be enabled