---
title: UNNotification
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/unnotification
---

# UNNotification

The data for a local or remote notification the system delivers to your app.

## Declaration

```swift
class UNNotification
```

## Overview

Overview A UNNotification object contains the initial notification request, which contains the notification’s payload, and the date that the system delivered the notification. Don’t create notification objects directly. When handling notifications, the system delivers notification objects to your UNUserNotificationCenterDelegate object. The UNUserNotificationCenter object also maintains the list of notifications that the system delivers, and you use the getDeliveredNotifications(completionHandler:) method to retrieve those objects.

## Topics

### Getting the Notification Details

- [request](usernotifications/unnotification/request.md)
- [date](usernotifications/unnotification/date.md)

### Initializers

- [init(coder:)](usernotifications/unnotification/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.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

### Notification requests

- [Scheduling a notification locally from your app](usernotifications/scheduling-a-notification-locally-from-your-app.md)
- [UNNotificationRequest](usernotifications/unnotificationrequest.md)
