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

MessageListComponent

[jvm]
interface MessageListComponent : MviModel<MessageListComponent.Intent, MessageListComponent.UiState, MessageListComponent.Effect>

Message list component contract.

Types

Name Summary
Effect [jvm]
interface Effect
Effects.
Intent [jvm]
interface Intent
View intents.
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.

Properties

Name Summary
editedSegment [jvm]
abstract val editedSegment: StateFlow<SegmentModel?>
Currently edited segment
effects [jvm]
abstract val effects: SharedFlow<MessageListComponent.Effect>
uiState [jvm]
abstract val uiState: StateFlow<MessageListComponent.UiState>

Functions

Name Summary
reduce [jvm]
abstract fun reduce(intent: MessageListComponent.Intent)