Created
December 16, 2019 14:24
-
-
Save BKinya/4ab52feac7fa1e5f2b8490767a5e4c6a to your computer and use it in GitHub Desktop.
Passing argument between destinations using safe args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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