Class

INPauseWorkoutIntentResponse

Your app’s response to a pause workout intent.

Declaration

@interface INPauseWorkoutIntentResponse : INIntentResponse

Overview

Use an INPauseWorkoutIntentResponse object to specify whether your app is able to pause 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 INPauseWorkoutIntentResponse object in the handlePauseWorkout:completion: and confirmPauseWorkout:completion: methods of your pause workout handler object. For more information about implementing your handler object, see INPauseWorkoutIntentHandling.

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.

INPauseWorkoutIntentResponseCode

Constants that indicate the response state.

Relationships

Inherits From

See Also

Pause a Workout

INPauseWorkoutIntentHandling

An interface that handles requests to pause a workout.

INPauseWorkoutIntent

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