Skip to content

Instantly share code, notes, and snippets.

@NsAveek
Last active November 14, 2019 08:57
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 NsAveek/f38d82d125ea1855e1df4efa2ee24c91 to your computer and use it in GitHub Desktop.
Save NsAveek/f38d82d125ea1855e1df4efa2ee24c91 to your computer and use it in GitHub Desktop.
activity.setResult(Activity.RESULT_OK, Intent().apply { // this:intent
putExtra("response", true)
putExtra("message", "success")
putExtra("result", "ok")
})
activity.setResult(Activity.RESULT_OK, Intent().also { // it:intent
it.putExtra("response", true)
it.putExtra("message", "success")
it.putExtra("result", "ok")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment