Contains the data for a delivered notification.
- iOS 10.0+
- tvOS 10.0+
- watchOS 3.0+
UNNotification object represents a local or remote notification that has been delivered to your app. A notification object consists of the initial notification request and the date on which the notification was delivered. The notification request includes the content of the notification and the trigger condition that caused it to be delivered.
You do not create instances of this class directly. Instead, the
UNUser object maintains the list of notification objects whose contents have been delivered to the user. Use the
get method to retrieve those notification objects.