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/a2279b45f292c8a934dd342252bf445d to your computer and use it in GitHub Desktop.
Save cengiztoru/a2279b45f292c8a934dd342252bf445d to your computer and use it in GitHub Desktop.
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