---
title: UNTextInputNotificationResponse
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/untextinputnotificationresponse
---

# UNTextInputNotificationResponse

The user’s response to an actionable notification, including any custom text that the user typed or dictated.

## Declaration

```swift
class UNTextInputNotificationResponse
```

## Overview

Overview The system delivers a UNTextInputNotificationResponse object to your app so that you can process user-provided text content. When defining your categories, you can specify an UNTextInputNotificationAction object instead of an UNNotificationAction object for your action. If you do, the system creates an UNTextInputNotificationResponse object when the user selects the accompanying action, and it fills the userText property with any user-entered text. You don’t create UNTextInputNotificationResponse 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 Text Response

- [userText](usernotifications/untextinputnotificationresponse/usertext.md)

## Relationships

### Inherits From

- [UNNotificationResponse](usernotifications/unnotificationresponse.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)
- [UNNotificationResponse](usernotifications/unnotificationresponse.md)
