Protocol

INEndWorkoutIntentHandling

An interface that handles requests to complete a workout.

Declaration

protocol INEndWorkoutIntentHandling

Overview

Use the methods of the INEndWorkoutIntentHandling protocol to resolve, confirm, and handle requests to end 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 end the workout from your Intents extension. When your handle(intent:completion:) returns, SiriKit launches your app and passes it an NSUserActivity object that contains the end workout intent object and your response. Your app uses the information in those objects to end the workout.

Topics

Resolving the Intent Parameters

Confirming the Response

Relationships

Inherits From

See Also

End a Workout

class INEndWorkoutIntent

A request to end the current workout that also validates workout parameters and saves the results.

class INEndWorkoutIntentResponse

Your app’s response to an end 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