---
title: UNNotificationContent
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/unnotificationcontent
---

# UNNotificationContent

The uneditable content of a notification.

## Declaration

```swift
class UNNotificationContent
```

## Mentioned in

Generating a remote notification

## Overview

Overview A UNNotificationContent object contains the data associated with a notification. When your app receives a notification, the associated UNNotificationRequest object contains an object of this type with the content that your app received. Use the content object to get the details of the notification, including the type of notification that the system delivered, any custom data you stored in the userInfo dictionary before scheduling the notification, and any attachments. Don’t create instances of this class directly. For remote notifications, the system derives the contents of this object from the JSON payload that your server sends to the APNS server. For local notifications, create a UNMutableNotificationContent object, and configure the contents of that object instead.

## Topics

### Accessing the primary content

- [title](usernotifications/unnotificationcontent/title.md)
- [subtitle](usernotifications/unnotificationcontent/subtitle.md)
- [body](usernotifications/unnotificationcontent/body.md)

### Accessing supplementary content

- [attachments](usernotifications/unnotificationcontent/attachments.md)
- [userInfo](usernotifications/unnotificationcontent/userinfo.md)

### Reading app configuration

- [launchImageName](usernotifications/unnotificationcontent/launchimagename.md)
- [badge](usernotifications/unnotificationcontent/badge.md)
- [targetContentIdentifier](usernotifications/unnotificationcontent/targetcontentidentifier.md)

### Reading system configuration

- [sound](usernotifications/unnotificationcontent/sound.md)
- [interruptionLevel](usernotifications/unnotificationcontent/interruptionlevel.md)
- [UNNotificationInterruptionLevel](usernotifications/unnotificationinterruptionlevel.md)
- [relevanceScore](usernotifications/unnotificationcontent/relevancescore.md)
- [filterCriteria](usernotifications/unnotificationcontent/filtercriteria.md)

### Retrieving group information

- [threadIdentifier](usernotifications/unnotificationcontent/threadidentifier.md)
- [categoryIdentifier](usernotifications/unnotificationcontent/categoryidentifier.md)
- [summaryArgument](usernotifications/unnotificationcontent/summaryargument.md)
- [summaryArgumentCount](usernotifications/unnotificationcontent/summaryargumentcount.md)

### Updating the notification’s content

- [updating(from:)](usernotifications/unnotificationcontent/updating(from:).md)

### Initializers

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

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [UNMutableNotificationContent](usernotifications/unmutablenotificationcontent.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)
- [NSMutableCopying](foundation/nsmutablecopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Notification content

- [Implementing communication notifications](usernotifications/implementing-communication-notifications.md)
- [UNNotificationContentProviding](usernotifications/unnotificationcontentproviding.md)
- [UNNotificationActionIcon](usernotifications/unnotificationactionicon.md)
- [UNMutableNotificationContent](usernotifications/unmutablenotificationcontent.md)
- [UNNotificationAttachment](usernotifications/unnotificationattachment.md)
- [UNNotificationSound](usernotifications/unnotificationsound.md)
- [UNNotificationSoundName](usernotifications/unnotificationsoundname.md)
