Class

INEndWorkoutIntentResponse

Your app’s response to an end workout intent.

Declaration

@interface INEndWorkoutIntentResponse : INIntentResponse

Overview

Use an INEndWorkoutIntentResponse object to specify whether your app is able to end a workout. The response object contains only the status code that indicates whether to launch your app or whether there was a problem.

You create an INEndWorkoutIntentResponse object in the handleEndWorkout:completion: and confirmEndWorkout:completion: methods of your end workout handler object. For more information about implementing your handler object, see INEndWorkoutIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

Initializes the response object with the specified code and user activity object.

Getting the Response Code

code

The code that indicates whether you successfully handled the intent.

INEndWorkoutIntentResponseCode

Constants that indicate the response state.

Relationships

Inherits From

See Also

End a Workout

INEndWorkoutIntentHandling

An interface that handles requests to complete a workout.

INEndWorkoutIntent

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

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