Defines an action that contains user-specified text.
- iOS 10.0+
- watchOS 3.0+
UNText object represents an action that can accept text-based input from the user. When presented to the user, an action of this type is accompanied by controls for entering or dictating text content. The text provided by the user is then included in the response object that is delivered to your app.
You create instances of this class when defining the actions and categories used by your notifications. Always instantiate this class using the
init(identifier: method. Add the resulting objects to one of the
UNNotification objects you define at launch time.
For more information about defining actions, see