MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.main.dialog.settings.presentation/SettingsComponent

SettingsComponent

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

Settings component contract.

Types

Name Summary
DialogConfig [jvm]
interface DialogConfig : Parcelable
Available sub-dialog configurations.
Effect [jvm]
interface Effect
Effects.
Intent [jvm]
interface Intent
View intents.
UiState [jvm]
data class UiState(val availableLanguages: List<LanguageModel> = emptyList(), val currentLanguage: LanguageModel? = null, val isLoading: Boolean = false, val similarityThreshold: String = "", val spellcheckEnabled: Boolean = false, val appVersion: String = "", val availableProviders: List<MachineTranslationProvider> = emptyList(), val currentProvider: MachineTranslationProvider? = null, val key: String = "")
UI state for general settings.

Properties

Name Summary
dialog [jvm]
abstract val dialog: Value<ChildSlot<SettingsComponent.DialogConfig, *>>
Current sub-dialog configuration.
effects [jvm]
abstract val effects: SharedFlow<SettingsComponent.Effect>
uiState [jvm]
abstract val uiState: StateFlow<SettingsComponent.UiState>

Functions

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