---
title: UNNotificationResponse
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/unnotificationresponse
---

# UNNotificationResponse

The user’s response to an actionable notification.

## Declaration

```swift
class UNNotificationResponse
```

## Overview

Overview When the user interacts with a delivered notification, the system delivers a UNNotificationResponse object to your app so that you can process the response. Users can interact with delivered notifications in many ways. If the notification’s category had associated action buttons, they can select one of those buttons. Users can also dismiss the notification without selecting one of your actions and they can open your app. A response object tells you which option the user selected. You don’t create UNNotificationResponse objects yourself. Instead, the shared user notification center object creates them and delivers them to the userNotificationCenter(_:didReceive:withCompletionHandler:) method of its delegate object. Use that method to extract any needed information from the response object and take appropriate action. For more information about responding to actions, see Handling notifications and notification-related actions.

## Topics

### Getting the Response Information

- [actionIdentifier](usernotifications/unnotificationresponse/actionidentifier.md)
- [notification](usernotifications/unnotificationresponse/notification.md)
- [targetScene](usernotifications/unnotificationresponse/targetscene.md)
- [UNNotificationDefaultActionIdentifier](usernotifications/unnotificationdefaultactionidentifier.md)
- [UNNotificationDismissActionIdentifier](usernotifications/unnotificationdismissactionidentifier.md)

### Initializers

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

## Relationships

### Inherits From

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

### Inherited By

- [UNTextInputNotificationResponse](usernotifications/untextinputnotificationresponse.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)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Notification responses

- [Handling notifications and notification-related actions](usernotifications/handling-notifications-and-notification-related-actions.md)
- [UNTextInputNotificationResponse](usernotifications/untextinputnotificationresponse.md)
