Skip to content

Instantly share code, notes, and snippets.

@jayeshsolanki93
jayeshsolanki93 / ExampleActivity.kt
Created May 13, 2021 16:56 — forked from ZakTaccardi/ExampleActivity.kt
Example MVI Implementation with Coroutines
import kotlinx.coroutines.experimental.android.Main
import kotlinx.coroutines.experimental.CoroutineScope
class ExampleActivity : Activity(), CoroutineScope by CoroutineScope(Dispatchers.Main) {
override fun onCreate(savedInstanceState: Bundle?)
super.onCreate(savedInstanceState)
val ui = Ui(this) // bind views, etc