---
title: IntentCancellationReason
framework: appintents
role: symbol
role_heading: Structure
path: appintents/intentcancellationreason
---

# IntentCancellationReason

Reasons for the cancellation of an app intent’s operation.

## Declaration

```swift
struct IntentCancellationReason
```

## Overview

Overview This type contains the possible reasons for the cancellation of an app intent. You don’t create instances of this type yourself. Instead, you receive a value in the cancellation handler you pass to the withIntentCancellationHandler(operation:onCancel:isolation:) method when running your app intent’s code. Use the reason to make decisions about how to respond to the cancellation.

## Topics

### Type Properties

- [timeout](appintents/intentcancellationreason/timeout.md)
- [userCancelled](appintents/intentcancellationreason/usercancelled.md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Cancelling the intent

- [withIntentCancellationHandler(operation:onCancel:isolation:)](appintents/cancellableintent/withintentcancellationhandler(operation:oncancel:isolation:).md)
