From the course: iOS 10 App Development: Integrating SiriKit

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Resolve an intent

Resolve an intent

From the course: iOS 10 App Development: Integrating SiriKit

Start my 1-month free trial

Resolve an intent

- [Instructor] Now, at this point, our app works every time. As long as the user is able to make the request to Siri, we're able to say it's a success. But, in order to actually do something with Siri, you're going to need certain information. What we're going to do here is take some data and make sure that it's good to use. For example, in a payment app, you need an amount of money to pay the user and a user to pay. In a messages app, you need a message and someone to send the message to. So, let's look at this example. Imagine the user is going to send some money, and we want to make sure that they've specified an amount of money and that that amount is above zero. So, let's go under this hand method here, and I'm going to handle the INSendPaymentIntent handling method resolveCurrecyAmount. So, find that method, highlight, and press Return, and in here we can grab the currency amount through this intent object, which is of the type INSendPaymentIntent. This object includes…

Contents