---
title: NSUserNotificationAction
framework: foundation
role: symbol
role_heading: Class
path: foundation/nsusernotificationaction
---

# NSUserNotificationAction

An action that the user can take in response to receiving a notification.

## Declaration

```swift
class NSUserNotificationAction
```

## Overview

Overview User notifications can specify one or more actions to show to the user by using the additionalActivationAction or additionalActions properties. NSUserNotificationAction objects contain the localized title shown to the user and an identifier used to differentiate between presented actions.

## Topics

### Creating User Notification Actions

- [init(identifier:title:)](foundation/nsusernotificationaction/init(identifier:title:).md)

### Getting the Identifier and Title

- [identifier](foundation/nsusernotificationaction/identifier.md)
- [title](foundation/nsusernotificationaction/title.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)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### User Notifications

- [NSUserNotification](foundation/nsusernotification.md)
- [NSUserNotificationCenter](foundation/nsusernotificationcenter.md)
- [NSUserNotificationCenterDelegate](foundation/nsusernotificationcenterdelegate.md)
