Your app’s response to a resume workout intent.


class INResumeWorkoutIntentResponse : INIntentResponse


Use an INResumeWorkoutIntentResponse object to specify whether your app is able to resume 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 INResumeWorkoutIntentResponse object in the handle(intent:completion:) and confirm(intent:completion:) methods of your resume workout handler object. For more information about implementing your handler object, see INResumeWorkoutIntentHandling.


Initializing the Response Object

init(code: INResumeWorkoutIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INResumeWorkoutIntentResponseCode

The code that indicates whether you successfully handled the intent.

enum INResumeWorkoutIntentResponseCode

Constants that indicate the response state.


Inherits From

Conforms To

See Also

Resume a Workout

protocol INResumeWorkoutIntentHandling

The interface that handles requests to resume a workout.

class INResumeWorkoutIntent

A request to resume a paused workout.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software