Created
June 19, 2020 00:51
-
-
Save Zhuinden/4da8780cac10e8281cd17ca32548a28e to your computer and use it in GitHub Desktop.
Hilt LoginViewModel Login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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