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


@interface UNTextInputNotificationResponse : UNNotificationResponse


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:didReceiveNotificationResponse: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.


Getting the Text Response


The text response provided by the user.


See Also

Notification Responses

Handling Notifications and Notification-Related Actions

Respond to user interactions with the system’s notification interfaces, including handling your app's custom actions.


The user’s response to an actionable notification.