Skip to content

Instantly share code, notes, and snippets.

@luddilo
Last active October 22, 2018 12:13
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 luddilo/615ce3efe8e58699233ef66717f07766 to your computer and use it in GitHub Desktop.
Save luddilo/615ce3efe8e58699233ef66717f07766 to your computer and use it in GitHub Desktop.
Share behavior between response handlers and wizard buttons
val IT_HAPPENED = "ItHappened"
onButton("Make it happen") {
raise(IT_HAPPENED)
}
onResponse<ItHappenedIntent> {
raise(IT_HAPPENED)
}
onEvent(IT_HAPPENED) {
// Handle it
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment