Class

INPauseWorkoutIntentResponse

Your app’s response to a pause workout intent.

Declaration

class 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 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 that indicates whether you successfully handled the intent.

enum INPauseWorkoutIntentResponseCode

Constants that indicate the response state.

Relationships

Inherits From

Conforms To

See Also

Pause a Workout

protocol INPauseWorkoutIntentHandling

An interface that handles requests to pause a workout.

class INPauseWorkoutIntent

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