Skip to content

Instantly share code, notes, and snippets.

@cengiztoru
Last active July 1, 2020 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cengiztoru/b6ef33e738d15599e436df0fd6a50dda to your computer and use it in GitHub Desktop.
Save cengiztoru/b6ef33e738d15599e436df0fd6a50dda to your computer and use it in GitHub Desktop.
Navigation Architectural Component - Pass Primitive Data Without SafeArgs
//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