Class

UNNotificationTrigger

The common behavior for subclasses that trigger the delivery of a notification.

Overview

The UNNotificationTrigger 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 UNNotificationRequest object that you use to schedule your notification.

Concrete trigger classes include the following:

Topics

Configuring the Trigger’s Behavior

var repeats: Bool

A Boolean value indicating whether the event repeats.

Relationships

Inherits From

See Also

Triggers

class UNCalendarNotificationTrigger

The date and time at which to deliver a local notification.

class UNTimeIntervalNotificationTrigger

The time that must expire before the delivery of a local notification.

class UNLocationNotificationTrigger

The geographic location that the user must reach to enable the delivery of a local notification.

class UNPushNotificationTrigger

An object that indicates that a notification was sent from the Apple Push Notification Service.