Class

INCancelWorkoutIntentResponse

Your app’s response to a cancel workout intent.

Declaration

@interface INCancelWorkoutIntentResponse : INIntentResponse

Overview

Use an INCancelWorkoutIntentResponse object to specify whether your app is able to cancel 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 INCancelWorkoutIntentResponse object in the handleCancelWorkout:completion: and confirmCancelWorkout:completion: methods of your cancel workout handler object. For more information about implementing your handler object, see INCancelWorkoutIntentHandling.

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.

INCancelWorkoutIntentResponseCode

Constants that indicate the response state.

Relationships

Inherits From

See Also

Cancel a Workout

INCancelWorkoutIntentHandling

The interface that handles requests to cancel a workout.

INCancelWorkoutIntent

A request to cancel an active workout.