VancedManager/core-mvi/src/main/java/example/ExampleViewModel.kt

15 lines
327 B
Kotlin
Raw Normal View History

2020-11-28 22:22:24 +00:00
package example
import example.ExampleContainer.State
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
class ExampleViewModel {
val viewModelScope = CoroutineScope(Job())
val mvi = ExampleContainer.create(
state = State.Default,
scope = viewModelScope
) // create "store"
}