Class

INPauseWorkoutIntentResponse

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

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 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.

Topics

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.

Relationships

Inherits From

Conforms To

See Also

Pause a Workout

protocol INPauseWorkoutIntentHandling

Handles the pausing of a workout.

class INPauseWorkoutIntent

Pauses the current workout.