Skip to content

Instantly share code, notes, and snippets.

@cengiztoru
Last active July 2, 2020 22:27
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/71aa8cdd6fc3387eede7b42dd7110217 to your computer and use it in GitHub Desktop.
Save cengiztoru/71aa8cdd6fc3387eede7b42dd7110217 to your computer and use it in GitHub Desktop.
Navigation Architecture Components - Pass Object without SafeArgs
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