Contains the user’s response to an actionable notification.
- iOS 10.0+
- watchOS 3.0+
When the user interacts with a delivered notification, the system delivers a
UNNotification 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 that the user selected.
You do not create instances of this class yourself. Instead, the notification center object creates instances and delivers them to the
user method of its delegate object. You use that method to extract any needed information from the response objects and take appropriate actions. For more information about implementing the notification center delegate, see