Skip to content

Instantly share code, notes, and snippets.

@Zhuinden
Created June 19, 2020 00:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zhuinden/4da8780cac10e8281cd17ca32548a28e to your computer and use it in GitHub Desktop.
Save Zhuinden/4da8780cac10e8281cd17ca32548a28e to your computer and use it in GitHub Desktop.
Hilt LoginViewModel Login
fun onLoginClicked() {
val username = // ...
navigationDispatcher.emit { navController ->
navController.navigate(
LoggedOutGraphDirections.loggedOutToLoggedIn(username))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment