<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserNotificationAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserNotificationAction"
  },
  "title" : "NSUserNotificationAction"
}
-->

# NSUserNotificationAction

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

```
class NSUserNotificationAction
```

## Overview

User notifications can specify one or more actions to show to the user by using the [`additionalActivationAction`](/documentation/Foundation/NSUserNotification/additionalActivationAction) or [`additionalActions`](/documentation/Foundation/NSUserNotification/additionalActions) properties. [`NSUserNotificationAction`](/documentation/Foundation/NSUserNotificationAction) objects contain the localized title shown to the user and an identifier used to differentiate between presented actions.

## Topics

### Creating User Notification Actions

[`+  actionWithIdentifier:title:`](/documentation/Foundation/NSUserNotificationAction/init(identifier:title:))

Creates a user notification action with a specified identifier and title.

### Getting the Identifier and Title

[`identifier`](/documentation/Foundation/NSUserNotificationAction/identifier)

The identifier for the user notification action.

[`title`](/documentation/Foundation/NSUserNotificationAction/title)

The localized title shown to the user.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)