Skip to content

Instantly share code, notes, and snippets.

@YashishDua
Created November 17, 2018 12:29
Show Gist options
  • Save YashishDua/6f115f216fb03718d1ac0436bc38f502 to your computer and use it in GitHub Desktop.
Save YashishDua/6f115f216fb03718d1ac0436bc38f502 to your computer and use it in GitHub Desktop.
class SharedViewModel : ViewModel() {
val data = MutableLiveData<Item>()
fun data(item: Item) {
data.value = item
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment