UserNotifications watchOS 7.4 to 8.0 API Differences

UNError.h
Added UNErrorCodeContentProvidingObjectNotAllowed
Added UNErrorCodeContentProvidingInvalid
UNNotificationAction.h
Added UNNotificationAction.icon
Added +[UNNotificationAction actionWithIdentifier:title:options:icon:]
Added +[UNTextInputNotificationAction actionWithIdentifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:]
UNNotificationActionIcon.h
Added UNNotificationActionIcon
Added +[UNNotificationActionIcon iconWithTemplateImageName:]
Added +[UNNotificationActionIcon iconWithSystemImageName:]
UNNotificationCategory.h
Modified UNNotificationCategoryOptionAllowAnnouncement
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedAnnouncement option is ignored

UNNotificationContent.h
Added UNNotificationContentProviding
Added UNNotificationInterruptionLevel
Added UNNotificationInterruptionLevelPassive
Added UNNotificationInterruptionLevelActive
Added UNNotificationInterruptionLevelTimeSensitive
Added UNNotificationInterruptionLevelCritical
Added UNNotificationContent.summaryArgument
Added UNNotificationContent.summaryArgumentCount
Added UNNotificationContent.interruptionLevel
Added UNNotificationContent.relevanceScore
Added -[UNNotificationContent contentByUpdatingWithProvider:error:]
Added UNMutableNotificationContent.summaryArgument
Added UNMutableNotificationContent.summaryArgumentCount
Added UNMutableNotificationContent.interruptionLevel
Added UNMutableNotificationContent.relevanceScore
Modified UNMutableNotificationContent.attachments
Declaration
From@property (nonatomic, copy) NSArray<UNNotificationAttachment *> *attachments
To@property (nonatomic, readwrite, copy) NSArray<UNNotificationAttachment *> *attachments

Modified UNMutableNotificationContent.badge
Declaration
From@property (nonatomic, copy) NSNumber *badge
To@property (nonatomic, readwrite, copy) NSNumber *badge

Modified UNMutableNotificationContent.body
Declaration
From@property (nonatomic, copy) NSString *body
To@property (nonatomic, readwrite, copy) NSString *body

Modified UNMutableNotificationContent.categoryIdentifier
Declaration
From@property (nonatomic, copy) NSString *categoryIdentifier
To@property (nonatomic, readwrite, copy) NSString *categoryIdentifier

Modified UNMutableNotificationContent.launchImageName
Declaration
From@property (nonatomic, copy) NSString *launchImageName
To@property (nonatomic, readwrite, copy) NSString *launchImageName

Modified UNMutableNotificationContent.sound
Declaration
From@property (nonatomic, copy) UNNotificationSound *sound
To@property (nonatomic, readwrite, copy) UNNotificationSound *sound

Modified UNMutableNotificationContent.subtitle
Declaration
From@property (nonatomic, copy) NSString *subtitle
To@property (nonatomic, readwrite, copy) NSString *subtitle

Modified UNMutableNotificationContent.threadIdentifier
Declaration
From@property (nonatomic, copy) NSString *threadIdentifier
To@property (nonatomic, readwrite, copy) NSString *threadIdentifier

Modified UNMutableNotificationContent.title
Declaration
From@property (nonatomic, copy) NSString *title
To@property (nonatomic, readwrite, copy) NSString *title

Modified UNMutableNotificationContent.userInfo
Declaration
From@property (nonatomic, copy) NSDictionary *userInfo
To@property (nonatomic, readwrite, copy) NSDictionary *userInfo

Modified UNMutableNotificationContent.targetContentIdentifier
Declaration
From@property (nonatomic, copy) NSString *targetContentIdentifier
To@property (nonatomic, readwrite, copy) NSString *targetContentIdentifier

UNNotificationSettings.h
Added UNNotificationSettings.timeSensitiveSetting
Added UNNotificationSettings.scheduledDeliverySetting
Added UNNotificationSettings.directMessagesSetting
UNNotificationTrigger.h
Added +[UNLocationNotificationTrigger triggerWithRegion:repeats:]
UNUserNotificationCenter.h
Added UNAuthorizationOptionTimeSensitive
Modified UNAuthorizationOptionAnnouncement
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedAnnouncement authorization is always included