MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.projects.list.presentation/ProjectListComponent

ProjectListComponent

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

Recent project list component contract.

Types

Name Summary
DialogConfiguration [jvm]
interface DialogConfiguration : Parcelable
Available dialog configurations.
Effect [jvm]
interface Effect
Effects.
Intent [jvm]
interface Intent
View intents.
UiState [jvm]
data class UiState(val projects: List<RecentProjectModel> = emptyList())
Project list UI state.

Properties

Name Summary
dialog [jvm]
abstract val dialog: Value<ChildSlot<ProjectListComponent.DialogConfiguration, *>>
effects [jvm]
abstract val effects: SharedFlow<ProjectListComponent.Effect>
uiState [jvm]
abstract val uiState: StateFlow<ProjectListComponent.UiState>

Functions

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