MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.projects.dialog.newproject.presentation/CreateProjectComponent

CreateProjectComponent

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

Types

Name Summary
Effect [jvm]
interface Effect
Effects.
Intent [jvm]
interface Intent
View intents.
UiState [jvm]
data class UiState(val name: String = "", val nameError: String = "", val isLoading: Boolean = false, val languages: List<LanguageModel> = emptyList(), val languagesError: String = "", val availableLanguages: List<LanguageModel> = emptyList())
Create project UI state.

Properties

Name Summary
effects [jvm]
abstract val effects: SharedFlow<CreateProjectComponent.Effect>
projectId [jvm]
abstract var projectId: Int
uiState [jvm]
abstract val uiState: StateFlow<CreateProjectComponent.UiState>

Functions

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