Created
February 2, 2019 19:08
-
-
Save riggaroo/9a2b16690d3f544257c99fb4912e9fe3 to your computer and use it in GitHub Desktop.
ProjectEditorViewModel using AndroidViewModel, exposing UI state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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