Class

INStartWorkoutIntentResponse

Your app’s response to a start workout intent.

Declaration

@interface INStartWorkoutIntentResponse : INIntentResponse

Overview

Use an INStartWorkoutIntentResponse object to specify whether your app is able to start a workout. The response object contains only the response code that indicates whether to launch your app or whether there was a problem.

You create an INStartWorkoutIntentResponse object in the confirmStartWorkout:completion: and handleStartWorkout:completion: methods of your start workout handler object. For more information about implementing your handler object, see INStartWorkoutIntentHandling.

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.

INStartWorkoutIntentResponseCode

Constants that indicate the response state.

Relationships

Inherits From

See Also

Start a Workout

INStartWorkoutIntentHandling

An interface that handles requests to start a workout.

INStartWorkoutIntent

A request to start a workout for the user.