Protocol

INCancelWorkoutIntentHandling

The interface that handles requests to cancel 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 capable of validating the workout name.

You don’t actually cancel the workout from your Intents extension. When your handleCancelWorkout:completion: returns, SiriKit launches your app and passes it an NSUserActivity object that contains the cancel workout intent object and your response. Your app uses the information in those objects to handle the cancellation.

Topics

Resolving the Intent Parameters

- resolveWorkoutNameForCancelWorkout:withCompletion:

Resolves the workout name that the user wants to cancel.

Confirming the Response

- confirmCancelWorkout:completion:

Confirms that your app is able to cancel the workout.

Handling the Intent

- handleCancelWorkout:completion:

Handles the canceling of the workout.

Required.

Relationships

Inherits From

See Also

Cancel a Workout

INCancelWorkoutIntent

A request to cancel an active workout.

INCancelWorkoutIntentResponse

Your app’s response to a cancel workout intent.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software