---
title: INCancelWorkoutIntent
framework: intents
role: symbol
role_heading: Class
path: intents/incancelworkoutintent
---

# INCancelWorkoutIntent

A request to cancel an active workout.

## Declaration

```swift
class INCancelWorkoutIntent
```

## Overview

Overview SiriKit creates an INCancelWorkoutIntent object when the user asks to cancel a currently running workout. Canceling a workout stops the workout and doesn’t record any progress toward the workout goals. Use this intent object to get the workout parameters. To handle this intent, the handler object in your Intents extension must adopt the INCancelWorkoutIntentHandling protocol. Your handler should confirm the request and create an INCancelWorkoutIntentResponse object to indicate it’s possible to cancel the workout. For the successful handling of the intent, SiriKit launches your app and passes it an NSUserActivity object that your app must then use to cancel the workout. Additional Intent Attributes The following table lists additional attributes of this intent object:  |   |   |

## Topics

### Creating the Intent Object

- [init(workoutName:)](intents/incancelworkoutintent/init(workoutname:).md)

### Specifying Workout Details

- [workoutName](intents/incancelworkoutintent/workoutname.md)

## Relationships

### Inherits From

- [INIntent](intents/inintent.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [INIntentSetImageKeyPath](intents/inintentsetimagekeypath.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)
- [INCancelWorkoutIntentResponse](intents/incancelworkoutintentresponse.md)
