//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.panel.glossary.presentation/GlossaryComponent
GlossaryComponent
[jvm]
interface GlossaryComponent : MviModel<GlossaryComponent.Intent, GlossaryComponent.UiState, GlossaryComponent.Effect>
Glossary component.
Types
Name | Summary |
---|---|
Effect | [jvm] interface Effect Effects. |
Intent | [jvm] interface Intent View intents. |
UiState | [jvm] data class UiState(val sourceFlag: String = "", val targetFlag: String = "", val isLoading: Boolean = false, val isBaseLanguage: Boolean = false, val terms: List<Pair<GlossaryTermModel, List<GlossaryTermModel>>> = emptyList()) Glossary panel UI state. |
Properties
Name | Summary |
---|---|
effects | [jvm] abstract val effects: SharedFlow<GlossaryComponent.Effect> |
uiState | [jvm] abstract val uiState: StateFlow<GlossaryComponent.UiState> |
Functions
Name | Summary |
---|---|
reduce | [jvm] abstract fun reduce(intent: GlossaryComponent.Intent) |