Last active
July 2, 2020 22:27
-
-
Save cengiztoru/71aa8cdd6fc3387eede7b42dd7110217 to your computer and use it in GitHub Desktop.
Navigation Architecture Components - Pass Object without 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 bundle = Bundle() | |
bundle.putParcelable("user", getUserData()) | |
navController.navigate(R.id.action_loginFragment_to_homeFragment, bundle) | |
// ************************************************************************************ | |
//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