Skip to content

Instantly share code, notes, and snippets.

@DanishAmjad12
Created June 20, 2019 12:42
Show Gist options
  • Save DanishAmjad12/6a2cf8974e83bbc96ea15fca19772a68 to your computer and use it in GitHub Desktop.
Save DanishAmjad12/6a2cf8974e83bbc96ea15fca19772a68 to your computer and use it in GitHub Desktop.
open class MyObseravble : ViewModel()
{
val data = MutableLiveData<String>()
fun data(item: String) {
data.value = item
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment