<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INCancelWorkoutIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INCancelWorkoutIntentResponse"
  },
  "title" : "INCancelWorkoutIntentResponse"
}
-->

# INCancelWorkoutIntentResponse

Your app’s response to a cancel workout intent.

```
class INCancelWorkoutIntentResponse
```

## Overview

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

## Topics

### Initializing the Response Object

[`init(code:userActivity:)`](/documentation/Intents/INCancelWorkoutIntentResponse/init(code:userActivity:))

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

### Getting the Response Code

[`code`](/documentation/Intents/INCancelWorkoutIntentResponse/code)

The code that indicates whether you successfully handled the intent.

[`INCancelWorkoutIntentResponseCode`](/documentation/Intents/INCancelWorkoutIntentResponseCode)

Constants that indicate the response state.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)