Skip to content

Instantly share code, notes, and snippets.

@BKinya
Created December 16, 2019 14:24
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 BKinya/4ab52feac7fa1e5f2b8490767a5e4c6a to your computer and use it in GitHub Desktop.
Save BKinya/4ab52feac7fa1e5f2b8490767a5e4c6a to your computer and use it in GitHub Desktop.
Passing argument between destinations using safe args
val nameTextview = rootView.findViewById<TextView>(R.id.name_txtview_main)
//passind data using safe args
//use fromBundles() method to retrieve the arguments
val name = MainFragmentArgs.fromBundle(arguments!!).name
nameTextview.text = name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment