---
title: UNTextInputNotificationAction
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/untextinputnotificationaction
---

# UNTextInputNotificationAction

An action that accepts user-typed text.

## Declaration

```swift
class UNTextInputNotificationAction
```

## Mentioned in

Declaring your actionable notification types

## Overview

Overview Use UNTextInputNotificationAction objects to define an action that allows the user to provide a custom text-based response. When the user selects an action of this type, the system displays controls for the user to enter or dictate the text content. That text is then included in the response object that’s delivered to your app. For information on how to define actions and categories, see Declaring your actionable notification types.

## Topics

### Essentials

- [init(identifier:title:options:textInputButtonTitle:textInputPlaceholder:)](usernotifications/untextinputnotificationaction/init(identifier:title:options:textinputbuttontitle:textinputplaceholder:).md)
- [init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)](usernotifications/untextinputnotificationaction/init(identifier:title:options:icon:textinputbuttontitle:textinputplaceholder:).md)

### Getting Information

- [textInputButtonTitle](usernotifications/untextinputnotificationaction/textinputbuttontitle.md)
- [textInputPlaceholder](usernotifications/untextinputnotificationaction/textinputplaceholder.md)

## Relationships

### Inherits From

- [UNNotificationAction](usernotifications/unnotificationaction.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 categories and user actions

- [Declaring your actionable notification types](usernotifications/declaring-your-actionable-notification-types.md)
- [UNNotificationCategory](usernotifications/unnotificationcategory.md)
- [UNNotificationAction](usernotifications/unnotificationaction.md)
