Last active
December 16, 2019 14:23
-
-
Save BKinya/fe8942e714066801e821fc783f46f32c to your computer and use it in GitHub Desktop.
Passing data from a destination using safe plugin
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 name = usernameEditTxtview.text.toString() | |
if (name.isNotEmpty()){ | |
//passing data between destinations with type safety using safe args | |
val action = LoginFragmentDirections.actionLoginFragmentToMainFragment(name) | |
findNavController().navigate(action) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment