Provides common behavior for subclasses that trigger the delivery of a notification.
- iOS 10.0+
- tvOS 10.0+
- watchOS 3.0+
UNNotification class is an abstract class for representing an event that triggers the delivery of a notification. You do not create instances of this class directly. Instead, you instantiate the concrete subclass that defines the trigger condition you want for your notification. You then assign the resulting object to the
UNNotification object that you use to schedule your notification.
Concrete trigger classes include the following: