Contains your app’s response to a pause workout intent.


class INPauseWorkoutIntentResponse : INIntentResponse


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 your app should be launched or whether there was a problem.

You create an INPauseWorkoutIntentResponse object in the handle(intent:completion:) and confirm(intent:completion:) methods of your pause workout handler object. For more information about implementing your handler object, see INPauseWorkoutIntentHandling.


Initializing the Response Object

init(code: INPauseWorkoutIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INPauseWorkoutIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INPauseWorkoutIntentResponseCode

Constants indicating the state of the response.


Inherits From

Conforms To

See Also

Pause a Workout

protocol INPauseWorkoutIntentHandling

The handler interface for pausing a workout.

class INPauseWorkoutIntent

A request to pause the current workout.