//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.dialog.newterm.presentation/NewGlossaryTermComponent
NewGlossaryTermComponent
interface NewGlossaryTermComponent : MviModel<NewGlossaryTermComponent.Intent, NewGlossaryTermComponent.UiState, NewGlossaryTermComponent.Effect>
New glossary term component contract.
Inheritors
DefaultNewGlossaryTermComponent |
Types
Name | Summary |
---|---|
Effect | [jvm] interface Effect |
Intent | [jvm] interface Intent View intents. |
UiState | [jvm] data class UiState(val sourceTerm: String = "", val sourceTermError: String = "", val targetTerm: String = "", val targetTermError: String = "") New glossary term UI state. |
Properties
Name | Summary |
---|---|
effects | [jvm] abstract val effects: SharedFlow<NewGlossaryTermComponent.Effect> |
uiState | [jvm] abstract val uiState: StateFlow<NewGlossaryTermComponent.UiState> |
Functions
Name | Summary |
---|---|
reduce | [jvm] abstract fun reduce(intent: NewGlossaryTermComponent.Intent) |