// // UNNotificationRequest.h // UserNotifications // // Copyright © 2015 Apple Inc. All rights reserved. // #import @class UNNotificationContent; @class UNNotificationTrigger; NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0)) @interface UNNotificationRequest : NSObject // The unique identifier for this notification request. It can be used to replace or remove a pending notification request or a delivered notification. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *identifier; // The content that will be shown on the notification. @property (NS_NONATOMIC_IOSONLY, readonly, copy) UNNotificationContent *content; // The trigger that will or did cause the notification to be delivered. A nil trigger means deliver immediately. @property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) UNNotificationTrigger *trigger; // Use a nil trigger to deliver immediately. + (instancetype)requestWithIdentifier:(NSString *)identifier content:(UNNotificationContent *)content trigger:(nullable UNNotificationTrigger *)trigger; - (instancetype)init NS_UNAVAILABLE; @end NS_ASSUME_NONNULL_END