Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Implementation of AacMviActivity abstract activity class,
class MainActivity : AacMviActivity<MainViewState, MainViewEffect, MainViewEvent, MainActVM>() {
override val viewModel: MainActVM by viewModels()
override fun renderViewState(viewState: MainViewState) {
//Handle new viewState
}
override fun renderViewEffect(viewEffect: MainViewEffect) {
//Show effects
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment