Package app.futured.arkitekt.core

Types

Link copied to clipboard
interface BaseView

Represents actions which are meant to be executed on Activity/Fragment. Make sure Activity/Fragment implements overridden version of this interface. Interface is usually used as a data variable in layout file with intention to call methods on Activity or Fragment respectively.

Link copied to clipboard
abstract class BaseViewModel<VS : ViewState> : ViewModel, DefaultLifecycleObserver

Base class representing ViewModel. It allows to observe LiveDatas, which is useful for observing ViewState. Observers are automatically removed when ViewModel is no longer used and will be destroyed. Beside that, it handles one-shot Events send from ViewModel to Activity/Fragment.

Link copied to clipboard
interface ViewState

Holds Activity/Fragment data/UI state through set of LiveData members. ViewState instance of particular Activity is stored in its BaseViewModel.