Instance Property

trigger

The conditions that trigger the delivery of the notification.

Declaration

@NSCopying var trigger: UNNotificationTrigger? { get }

Discussion

For notifications that have already been delivered, use this property to determine what caused the delivery to occur. For remote notifications, this property contains a UNPushNotificationTrigger object. For other notifications, the type is based on the trigger condition specified in the original request.

See Also

Getting the Request Details

var identifier: String

The unique identifier for this notification request.

var content: UNNotificationContent

The content associated with the notification.