//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.panel.memory.presentation/BrowseMemoryComponent
BrowseMemoryComponent
[jvm]
interface BrowseMemoryComponent : MviModel<BrowseMemoryComponent.Intent, BrowseMemoryComponent.UiState, BrowseMemoryComponent.Effect>
Browse memory component.
Types
Name | Summary |
---|---|
Effect | [jvm] interface Effect Effects. |
Intent | [jvm] interface Intent View intents. |
UiState | [jvm] data class UiState(val sourceLanguage: LanguageModel? = null, val availableSourceLanguages: List<LanguageModel> = emptyList(), val targetLanguage: LanguageModel? = null, val availableTargetLanguages: List<LanguageModel> = emptyList(), val currentSearch: String = "", val entries: List<TranslationMemoryEntryModel> = emptyList()) UI state from the TM content panel. |
Properties
Name | Summary |
---|---|
effects | [jvm] abstract val effects: SharedFlow<BrowseMemoryComponent.Effect> |
uiState | [jvm] abstract val uiState: StateFlow<BrowseMemoryComponent.UiState> |
Functions
Name | Summary |
---|---|
reduce | [jvm] abstract fun reduce(intent: BrowseMemoryComponent.Intent) |