The handler interface for canceling a workout.
- iOS 10.0+
- watchOS 3.2+
Use the methods of the
INCancel protocol to resolve, confirm, and handle requests to cancel a workout using your app. Adopt this protocol in an object of your Intents extension that is capable of validating the workout name.
You do not actually cancel the workout from your Intents extension. When your
handle(intent: returns, SiriKit launches your app and passes it an
NSUser object containing the cancel workout intent object and your response. Your app uses the information in those objects to handle the cancellation.