---
title: notificationType
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cknotification/notificationtype-swift.property
---

# notificationType

The type of event that generates the notification.

## Declaration

```swift
var notificationType: CKNotification.NotificationType { get }
```

## Discussion

Discussion Different notification types correspond to different subclasses of CKNotification, so you can use the value in this property to determine how to handle the notification data.

## See Also

### Identifying the Notification

- [notificationID](cloudkit/cknotification/notificationid.md)
- [CKNotification.ID](cloudkit/cknotification/id.md)
- [CKNotification.NotificationType](cloudkit/cknotification/notificationtype-swift.enum.md)
- [containerIdentifier](cloudkit/cknotification/containeridentifier.md)
