Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Last active June 6, 2018 14:33
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 olbrichj/37e67db857dd6cc0cfe0a5b6d779e37b to your computer and use it in GitHub Desktop.
Save olbrichj/37e67db857dd6cc0cfe0a5b6d779e37b to your computer and use it in GitHub Desktop.
public func handle(intent: DanceIntent, completion: @escaping (DanceIntentResponse) -> Void) {
// check for your intent here and handle it accordingly
let dance = intent.dance
// finish by providing a response
completion(DanceIntentResponse.success(dance: dance, playTime: 10))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment