---
title: CKQueryNotification.Reason
framework: cloudkit
role: symbol
role_heading: Enumeration
path: cloudkit/ckquerynotification/reason
---

# CKQueryNotification.Reason

Constants that indicate the event that triggers the notification.

## Declaration

```swift
enum Reason
```

## Topics

### Constants

- [CKQueryNotification.Reason.recordCreated](cloudkit/ckquerynotification/reason/recordcreated.md)
- [CKQueryNotification.Reason.recordUpdated](cloudkit/ckquerynotification/reason/recordupdated.md)
- [CKQueryNotification.Reason.recordDeleted](cloudkit/ckquerynotification/reason/recorddeleted.md)

### Initializers

- [init(rawValue:)](cloudkit/ckquerynotification/reason/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting the Notification Attributes

- [queryNotificationReason](cloudkit/ckquerynotification/querynotificationreason.md)
