Skip to content

Instantly share code, notes, and snippets.

@cengiztoru
Last active July 1, 2020 20:59
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/87d5d5040bded4fcfc41077e51d0f078 to your computer and use it in GitHub Desktop.
Save cengiztoru/87d5d5040bded4fcfc41077e51d0f078 to your computer and use it in GitHub Desktop.
Navigatiıon Architectural Components - Getting Passed Data
lateinit var email: String
lateinit var userID: Int
lateinit var isActive: Boolean
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
email = arguments!!.getString("email")!!
userID = arguments!!.getInt("userId")!!
isActive = arguments!!.getBoolean("isActive")!!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment