Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created May 22, 2020 13:08
Show Gist options
  • Save PatilShreyas/5d8347a579a142531a9f52ea12e6b160 to your computer and use it in GitHub Desktop.
Save PatilShreyas/5d8347a579a142531a9f52ea12e6b160 to your computer and use it in GitHub Desktop.
private fun initCountObserver() {
lifecycleScope.launch {
viewModel.countState.collect { value ->
textview_count.text = "$value"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment