//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.presentation/TranslateComponent
TranslateComponent
[jvm]
interface TranslateComponent : MviModel<TranslateComponent.Intent, TranslateComponent.UiState, TranslateComponent.Effect>
Translate component.
Types
Name | Summary |
---|---|
DialogConfig | [jvm] interface DialogConfig : Parcelable Available dialog configurations for the dialog slot. |
Effect | [jvm] interface Effect Effects. |
Intent | [jvm] interface Intent View intents. |
MessageListConfig | [jvm] object MessageListConfig : Parcelable Slot configuration for the message list. This is the only config value available in the messageList slot. |
PanelConfig | [jvm] interface PanelConfig : Parcelable Available configurations for the panel slot. |
ToolbarConfig | [jvm] object ToolbarConfig : Parcelable Slot configuration for the translation toolbar. This is the only config value available in the toolbar slot. |
UiState | [jvm] data class UiState(val project: ProjectModel? = null, val unitCount: Int = 0, val needsSaving: Boolean = false, val isEditing: Boolean = false, val currentLanguage: LanguageModel? = null) UI state for the translation editor. |
Properties
Name | Summary |
---|---|
dialog | [jvm] abstract val dialog: Value<ChildSlot<TranslateComponent.DialogConfig, *>> Navigation slot for the dialogs |
effects | [jvm] abstract val effects: SharedFlow<TranslateComponent.Effect> |
messageList | [jvm] abstract val messageList: Value<ChildSlot<TranslateComponent.MessageListConfig, MessageListComponent>> Navigation slot for the message list |
panel | [jvm] abstract val panel: Value<ChildSlot<TranslateComponent.PanelConfig, *>> Navigation slot for the bottom panel |
projectId | [jvm] abstract var projectId: Int Current project ID |
toolbar | [jvm] abstract val toolbar: Value<ChildSlot<TranslateComponent.ToolbarConfig, TranslateToolbarComponent>> Navigation slot for the toolbar |
uiState | [jvm] abstract val uiState: StateFlow<TranslateComponent.UiState> |
Functions
Name | Summary |
---|---|
reduce | [jvm] abstract fun reduce(intent: TranslateComponent.Intent) |