Last active
July 2, 2020 22:27
-
-
Save cengiztoru/a2279b45f292c8a934dd342252bf445d to your computer and use it in GitHub Desktop.
Navigation Architectural Component Pass Data With SafeArgs
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
val user = getUserData() | |
val action = LoginFragmentDirections.actionLoginFragmentToHomeFragment(user) | |
navController.navigate(action) | |
// ************************************************************************************ | |
//TODO YOU CAN CUSTOMIZE HERE FOR YOU | |
private fun getUserData() = User(etMail.text.toString(), "Cengiz", "TORU") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment