Skip to content

Instantly share code, notes, and snippets.

@riggaroo
Created February 2, 2019 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riggaroo/9a2b16690d3f544257c99fb4912e9fe3 to your computer and use it in GitHub Desktop.
Save riggaroo/9a2b16690d3f544257c99fb4912e9fe3 to your computer and use it in GitHub Desktop.
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