Protocol

INCancelWorkoutIntentHandling

The handler interface for canceling a workout.

Declaration

@protocol INCancelWorkoutIntentHandling

Overview

Use the methods of the INCancelWorkoutIntentHandling 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 handleCancelWorkout:completion: returns, SiriKit launches your app and passes it an NSUserActivity object containing the cancel workout intent object and your response. Your app uses the information in those objects to handle the cancellation.

Topics

Handling the Intent

handleCancelWorkout:completion:

Called when it is time for you to cancel the workout.

Required.

Confirming the Response

confirmCancelWorkout:completion:

Called when it is time for you to confirm the details of the cancellation.

Resolving Details of the Intent

resolveWorkoutNameForCancelWorkout:withCompletion:

Called when you need to resolve the name of the workout that the user wants to cancel.

Relationships

Inherits From

See Also

Cancel a Workout

INCancelWorkoutIntent

A request to cancel an active workout.

INCancelWorkoutIntentResponse

Contains your app’s response to a cancel workout intent.