---
title: INCancelWorkoutIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/incancelworkoutintentresponse
---

# INCancelWorkoutIntentResponse

Your app’s response to a cancel workout intent.

## Declaration

```swift
class INCancelWorkoutIntentResponse
```

## Overview

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 to launch your app 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:userActivity:)](intents/incancelworkoutintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/incancelworkoutintentresponse/code.md)
- [INCancelWorkoutIntentResponseCode](intents/incancelworkoutintentresponsecode.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Cancel a Workout

- [INCancelWorkoutIntentHandling](intents/incancelworkoutintenthandling.md)
- [INCancelWorkoutIntent](intents/incancelworkoutintent.md)
