Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Don't use this for events
class ListViewModel : ViewModel {
private val _navigateToDetails = MutableLiveData<Boolean>()
val navigateToDetails : LiveData<Boolean>
get() = _navigateToDetails
fun userClicksOnButton() {
_navigateToDetails.value = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment