MviComponent

fun <S : MviState, I : MviIntent, E : MviEffect> MviComponent(viewModel: MviViewModel<S, I, E>, processEffect: (effect: E) -> Unit = {}, content: @Composable (state: S) -> Unit)(source)
fun <S : MviState, I : MviIntent, E : MviEffect> MviComponent(viewModel: MviViewModel<S, I, E>, processEffect: (effect: E) -> Unit = {}, content: @Composable (state: S, processIntent: (I) -> Unit) -> Unit)(source)

Renders the MviComponent UI for the SDAI presentation layer.

Author

Dmitriy Moroz

Parameters

viewModel

view model value consumed by the API.

processEffect

process effect value consumed by the API.

content

content value consumed by the API.