Protocol

INPauseWorkoutIntentHandling

An interface that handles requests to pause a workout.

Declaration

@protocol INPauseWorkoutIntentHandling

Overview

Use the methods of the INPauseWorkoutIntentHandling protocol to resolve, confirm, and handle requests to pause a workout that’s using your app. Adopt this protocol in an object of your Intents extension that’s capable of validating the workout name.

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

Topics

Resolving the Intent Parameters

- resolveWorkoutNameForPauseWorkout:withCompletion:

Resolves the name of the workout that the user wants to pause.

Confirming the Intent

- confirmPauseWorkout:completion:

Confirms that you can pause the current workout.

Handling the Intent

- handlePauseWorkout:completion:

Handle pausing the workout.

Required.

Relationships

Inherits From

See Also

Pause a Workout

INPauseWorkoutIntent

A request to pause the current workout that also stops the gathering of workout data.

INPauseWorkoutIntentResponse

Your app’s response to a pause 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