Class

INCancelWorkoutIntentResponse

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

Overview

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

Topics

Initializing the Response Object

init(code: INCancelWorkoutIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INCancelWorkoutIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INCancelWorkoutIntentResponseCode

Constants indicating the state of the response.

Relationships

Inherits From

Conforms To

See Also

Cancel a Workout

protocol INCancelWorkoutIntentHandling

The handler interface for cancelling a workout.

class INCancelWorkoutIntent

A request to cancel an active workout.