<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNNotificationContent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNNotificationContent"
  },
  "title" : "UNNotificationContent"
}
-->

# UNNotificationContent

The uneditable content of a notification.

```
class UNNotificationContent
```

## Overview

A [`UNNotificationContent`](/documentation/UserNotifications/UNNotificationContent) object contains the data associated with a notification. When your app receives a notification, the associated [`UNNotificationRequest`](/documentation/UserNotifications/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`](/documentation/UserNotifications/UNNotificationContent/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`](/documentation/UserNotifications/UNMutableNotificationContent) object, and configure the contents of that object instead.

## Topics

### Accessing the primary content

[`title`](/documentation/UserNotifications/UNNotificationContent/title)

The localized text that provides the notification’s primary description.

[`subtitle`](/documentation/UserNotifications/UNNotificationContent/subtitle)

The localized text that provides the notification’s secondary description.

[`body`](/documentation/UserNotifications/UNNotificationContent/body)

The localized text that provides the notification’s main content.

### Accessing supplementary content

[`attachments`](/documentation/UserNotifications/UNNotificationContent/attachments)

The visual and audio attachments to display alongside the notification’s main content.

[`userInfo`](/documentation/UserNotifications/UNNotificationContent/userInfo)

The custom data to associate with the notification.

### Reading app configuration

[`launchImageName`](/documentation/UserNotifications/UNNotificationContent/launchImageName)

The name of the image or storyboard to use when your app launches because of the notification.

[`badge`](/documentation/UserNotifications/UNNotificationContent/badge)

The number that your app’s icon displays.

[`targetContentIdentifier`](/documentation/UserNotifications/UNNotificationContent/targetContentIdentifier)

The value your app uses to determine which scene to display to handle the notification.

### Reading system configuration

[`sound`](/documentation/UserNotifications/UNNotificationContent/sound)

The sound that plays when the system delivers the notification.

[`interruptionLevel`](/documentation/UserNotifications/UNNotificationContent/interruptionLevel)

The notification’s importance and required delivery timing.

[`UNNotificationInterruptionLevel`](/documentation/UserNotifications/UNNotificationInterruptionLevel)

Constants that indicate the importance and delivery timing of a notification.

[`relevanceScore`](/documentation/UserNotifications/UNNotificationContent/relevanceScore)

The score the system uses to determine if the notification is the summary’s featured notification.

[`filterCriteria`](/documentation/UserNotifications/UNNotificationContent/filterCriteria)

The criteria the system evaluates to determine if it displays the notification in the current Focus.

### Retrieving group information

[`threadIdentifier`](/documentation/UserNotifications/UNNotificationContent/threadIdentifier)

The identifier that groups related notifications.

[`categoryIdentifier`](/documentation/UserNotifications/UNNotificationContent/categoryIdentifier)

The identifier of the notification’s category.

[`summaryArgument`](/documentation/UserNotifications/UNNotificationContent/summaryArgument)

The text the system adds to the notification summary to provide additional context.

[`summaryArgumentCount`](/documentation/UserNotifications/UNNotificationContent/summaryArgumentCount)

The number the system adds to the notification summary when the notification represents multiple items.

### Updating the notification’s content

[`updating(from:)`](/documentation/UserNotifications/UNNotificationContent/updating(from:))

Returns a copy of the notification that includes content from the specified provider.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)