Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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