Last active
July 1, 2020 20:51
-
-
Save cengiztoru/b6ef33e738d15599e436df0fd6a50dda to your computer and use it in GitHub Desktop.
Navigation Architectural Component - Pass Primitive Data 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
//PASS DATA WITHOUT SAFE ARGS, PASS DATA BY SIMPLE BUNDLE | |
val bundle = Bundle() | |
bundle.putString("email", etMail.text.toString()) | |
bundle.putInt("userID", 123) | |
bundle.putBoolean("isActive",false) | |
// ... | |
navController.navigate(R.id.action_loginFragment_to_homeFragment, bundle) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment