public class BaseCrViewModel<S extends ViewState> implements CoroutineScopeOwner
Base ViewModel class prepared for providing data to UI through LiveData and
obtaining data from Stores (Repositories) by executing Coroutine based use cases like
class UseCase and class FlowUseCase.
class UseCase,
class FlowUseCaseCoroutineScopeOwner.DefaultImpls, CoroutineScopeOwner.FlowUseCaseConfig<T>, CoroutineScopeOwner.UseCaseConfig<T>| Constructor and Description |
|---|
BaseCrViewModel()
Base ViewModel class prepared for providing data to UI through LiveData and
obtaining data from Stores (Repositories) by executing Coroutine based use cases like
class UseCase and class FlowUseCase. |
| Modifier and Type | Method and Description |
|---|---|
kotlinx.coroutines.CoroutineScope |
getCoroutineScope()
CoroutineScope scope used to execute coroutine based use cases. It is your responsibility to cancel it when all running
tasks should be stopped
|
defaultErrorHandler, execute, execute, execute, execute, execute, execute, getCoroutineScope, getWorkerDispatcher, launchWithHandlerpublic BaseCrViewModel()
Base ViewModel class prepared for providing data to UI through LiveData and
obtaining data from Stores (Repositories) by executing Coroutine based use cases like
class UseCase and class FlowUseCase.
class UseCase,
class FlowUseCase