Instance Property


The conditions that trigger the delivery of the notification.


@NSCopying var trigger: UNNotificationTrigger? { get }


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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software