Skip to content

Instantly share code, notes, and snippets.

@RohitSurwase
Created March 4, 2020 23:16
Show Gist options
  • Save RohitSurwase/4345ab130fa273a20615c04214058353 to your computer and use it in GitHub Desktop.
Save RohitSurwase/4345ab130fa273a20615c04214058353 to your computer and use it in GitHub Desktop.
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