---
title: UNMutableNotificationContent
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/unmutablenotificationcontent
---

# UNMutableNotificationContent

The editable content for a notification.

## Declaration

```swift
class UNMutableNotificationContent
```

## Mentioned in

Declaring your actionable notification types Modifying content in newly delivered notifications

## Overview

Overview Create a UNMutableNotificationContent object when you want to specify the payload for a local notification. Specifically, use this object to specify the title and message for an alert, the sound to play, or the value to assign to your app’s badge. You might also provide details about how the system handles the notification. For example, you can specify a custom launch image and a thread identifier for visually grouping related notifications. After creating your content object, assign it to a UNNotificationRequest object, add a trigger condition, and schedule your notification. The trigger condition defines when the system delivers the notification to the user. Listing 1 shows the scheduling of a local notification that displays an alert and plays a sound after a delay of five seconds. Store the strings for the alert’s title and body in the app’s Localizable.strings file. Listing 1. Creating the content for a local notification note: Local notifications always result in user interactions, and the system ignores any interactions for which your app isn’t authorized. For information about how to request authorization for user interactions, see Asking permission to use notifications. Localizing the Alert Strings Localize the strings you display in a notification alert for the current user. Although you can use the NSLocalizedString macros to load strings from your app’s resource files, a better option is to specify your string using the localizedUserNotificationString(forKey:arguments:) method of NSString. The localizedUserNotificationString(forKey:arguments:) method delays the loading of the localized string until the system delivers the notification. If the user changes the language setting before the system delivers a notification, the system updates the alert text to the user’s current language instead of the language in use when the system scheduled the notification.

## Topics

### Providing the primary content

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

### Providing supplementary content

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

### Configuring app behavior

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

### Integrating with the system

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

### Grouping notifications

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

### Instance Properties

- [appEntityIdentifiers](usernotifications/unmutablenotificationcontent/appentityidentifiers.md)

## Relationships

### Inherits From

- [UNNotificationContent](usernotifications/unnotificationcontent.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)
- [UNNotificationContent](usernotifications/unnotificationcontent.md)
- [UNNotificationAttachment](usernotifications/unnotificationattachment.md)
- [UNNotificationSound](usernotifications/unnotificationsound.md)
- [UNNotificationSoundName](usernotifications/unnotificationsoundname.md)
