Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Navigation Architectural Component Pass Data With SafeArgs
val user = getUserData()
val action = LoginFragmentDirections.actionLoginFragmentToHomeFragment(user)
navController.navigate(action)
// ************************************************************************************
//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