Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ProjectEditorViewModel using AndroidViewModel, exposing UI state
class ProjectEditorViewModel : ViewModel() {
private val _state = MutableLiveData<EditorState>()
val state: LiveData<EditorState>
get() = _state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment