The common behavior for subclasses that trigger the delivery of a local or remote notification.
- iOS 10.0+
- macOS 10.14+Beta
- tvOS 10.0+
- watchOS 3.0+
UNNotification class is an abstract class for representing an event that triggers the delivery of a notification. You don't 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: