UserNotifications macOS 10.13 to 10.14 API Differences
NSString+UserNotifications.h
Added
NSString (UNUserNotificationCenterSupport)
Added
+[NSString localizedUserNotificationStringForKey:arguments:]
UNError.h
Added
UNErrorDomain
Added
UNErrorCode
Added
UNErrorCodeNotificationsNotAllowed
Added
UNErrorCodeAttachmentInvalidURL
Added
UNErrorCodeAttachmentUnrecognizedType
Added
UNErrorCodeAttachmentInvalidFileSize
Added
UNErrorCodeAttachmentNotInDataStore
Added
UNErrorCodeAttachmentMoveIntoDataStoreFailed
Added
UNErrorCodeAttachmentCorrupt
Added
UNErrorCodeNotificationInvalidNoDate
Added
UNErrorCodeNotificationInvalidNoContent
UNNotification.h
Added
UNNotification
Added
UNNotification.date
Added
UNNotification.request
UNNotificationAction.h
Added
UNNotificationActionOptions
Added
UNNotificationActionOptionAuthenticationRequired
Added
UNNotificationActionOptionDestructive
Added
UNNotificationActionOptionForeground
Added
UNNotificationActionOptionNone
Added
UNNotificationAction
Added
UNNotificationAction.identifier
Added
UNNotificationAction.title
Added
UNNotificationAction.options
Added
+[UNNotificationAction actionWithIdentifier:title:options:]
Added
UNTextInputNotificationAction
Added
+[UNTextInputNotificationAction actionWithIdentifier:title:options:textInputButtonTitle:textInputPlaceholder:]
Added
UNTextInputNotificationAction.textInputButtonTitle
Added
UNTextInputNotificationAction.textInputPlaceholder
UNNotificationAttachment.h
Added
UNNotificationAttachment
Added
UNNotificationAttachment.identifier
Added
UNNotificationAttachment.URL
Added
UNNotificationAttachment.type
Added
+[UNNotificationAttachment attachmentWithIdentifier:URL:options:error:]
Added
UNNotificationAttachmentOptionsTypeHintKey
Added
UNNotificationAttachmentOptionsThumbnailHiddenKey
Added
UNNotificationAttachmentOptionsThumbnailClippingRectKey
Added
UNNotificationAttachmentOptionsThumbnailTimeKey
UNNotificationCategory.h
Added
UNNotificationCategoryOptions
Added
UNNotificationCategoryOptionCustomDismissAction
Added
UNNotificationCategoryOptionHiddenPreviewsShowTitle
Added
UNNotificationCategoryOptionHiddenPreviewsShowSubtitle
Added
UNNotificationCategoryOptionNone
Added
UNNotificationCategory
Added
UNNotificationCategory.identifier
Added
UNNotificationCategory.actions
Added
UNNotificationCategory.intentIdentifiers
Added
UNNotificationCategory.options
Added
UNNotificationCategory.hiddenPreviewsBodyPlaceholder
Added
UNNotificationCategory.categorySummaryFormat
Added
+[UNNotificationCategory categoryWithIdentifier:actions:intentIdentifiers:options:]
Added
+[UNNotificationCategory categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:options:]
Added
+[UNNotificationCategory categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:categorySummaryFormat:options:]
UNNotificationContent.h
Added
UNNotificationContent
Added
UNNotificationContent.attachments
Added
UNNotificationContent.badge
Added
UNNotificationContent.body
Added
UNNotificationContent.categoryIdentifier
Added
UNNotificationContent.sound
Added
UNNotificationContent.subtitle
Added
UNNotificationContent.threadIdentifier
Added
UNNotificationContent.title
Added
UNNotificationContent.userInfo
Added
UNNotificationContent.summaryArgument
Added
UNNotificationContent.summaryArgumentCount
Added
UNMutableNotificationContent
Added
UNMutableNotificationContent.attachments
Added
UNMutableNotificationContent.badge
Added
UNMutableNotificationContent.body
Added
UNMutableNotificationContent.categoryIdentifier
Added
UNMutableNotificationContent.sound
Added
UNMutableNotificationContent.subtitle
Added
UNMutableNotificationContent.threadIdentifier
Added
UNMutableNotificationContent.title
Added
UNMutableNotificationContent.userInfo
Added
UNMutableNotificationContent.summaryArgument
Added
UNMutableNotificationContent.summaryArgumentCount
UNNotificationRequest.h
Added
UNNotificationRequest
Added
UNNotificationRequest.identifier
Added
UNNotificationRequest.content
Added
UNNotificationRequest.trigger
Added
+[UNNotificationRequest requestWithIdentifier:content:trigger:]
UNNotificationResponse.h
Added
UNNotificationDefaultActionIdentifier
Added
UNNotificationDismissActionIdentifier
Added
UNNotificationResponse
Added
UNNotificationResponse.notification
Added
UNNotificationResponse.actionIdentifier
Added
UNTextInputNotificationResponse
Added
UNTextInputNotificationResponse.userText
UNNotificationServiceExtension.h
Added
UNNotificationServiceExtension
Added
-[UNNotificationServiceExtension didReceiveNotificationRequest:withContentHandler:]
Added
-[UNNotificationServiceExtension serviceExtensionTimeWillExpire]
UNNotificationSettings.h
Added
UNAuthorizationStatus
Added
UNAuthorizationStatusNotDetermined
Added
UNAuthorizationStatusDenied
Added
UNAuthorizationStatusAuthorized
Added
UNAuthorizationStatusProvisional
Added
UNShowPreviewsSetting
Added
UNShowPreviewsSettingAlways
Added
UNShowPreviewsSettingWhenAuthenticated
Added
UNShowPreviewsSettingNever
Added
UNNotificationSetting
Added
UNNotificationSettingNotSupported
Added
UNNotificationSettingDisabled
Added
UNNotificationSettingEnabled
Added
UNAlertStyle
Added
UNAlertStyleNone
Added
UNAlertStyleBanner
Added
UNAlertStyleAlert
Added
UNNotificationSettings
Added
UNNotificationSettings.authorizationStatus
Added
UNNotificationSettings.soundSetting
Added
UNNotificationSettings.badgeSetting
Added
UNNotificationSettings.alertSetting
Added
UNNotificationSettings.notificationCenterSetting
Added
UNNotificationSettings.lockScreenSetting
Added
UNNotificationSettings.alertStyle
Added
UNNotificationSettings.showPreviewsSetting
Added
UNNotificationSettings.criticalAlertSetting
Added
UNNotificationSettings.providesAppNotificationSettings
UNNotificationSound.h
Added
UNNotificationSoundName
Added
UNNotificationSound
Added
UNNotificationSound.defaultSound
Added
UNNotificationSound.defaultCriticalSound
Added
+[UNNotificationSound defaultCriticalSoundWithAudioVolume:]
Added
+[UNNotificationSound soundNamed:]
Added
+[UNNotificationSound criticalSoundNamed:]
Added
+[UNNotificationSound criticalSoundNamed:withAudioVolume:]
UNNotificationTrigger.h
Added
UNNotificationTrigger
Added
UNNotificationTrigger.repeats
Added
UNPushNotificationTrigger
Added
UNTimeIntervalNotificationTrigger
Added
UNTimeIntervalNotificationTrigger.timeInterval
Added
+[UNTimeIntervalNotificationTrigger triggerWithTimeInterval:repeats:]
Added
-[UNTimeIntervalNotificationTrigger nextTriggerDate]
Added
UNCalendarNotificationTrigger
Added
UNCalendarNotificationTrigger.dateComponents
Added
+[UNCalendarNotificationTrigger triggerWithDateMatchingComponents:repeats:]
Added
-[UNCalendarNotificationTrigger nextTriggerDate]
UNUserNotificationCenter.h
Added
UNAuthorizationOptions
Added
UNAuthorizationOptionBadge
Added
UNAuthorizationOptionSound
Added
UNAuthorizationOptionAlert
Added
UNAuthorizationOptionCarPlay
Added
UNAuthorizationOptionCriticalAlert
Added
UNAuthorizationOptionProvidesAppNotificationSettings
Added
UNAuthorizationOptionProvisional
Added
UNAuthorizationOptionNone
Added
UNUserNotificationCenter
Added
UNUserNotificationCenter.delegate
Added
UNUserNotificationCenter.supportsContentExtensions
Added
+[UNUserNotificationCenter currentNotificationCenter]
Added
-[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]
Added
-[UNUserNotificationCenter setNotificationCategories:]
Added
-[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]
Added
-[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:]
Added
-[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]
Added
-[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:]
Added
-[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:]
Added
-[UNUserNotificationCenter removeAllPendingNotificationRequests]
Added
-[UNUserNotificationCenter getDeliveredNotificationsWithCompletionHandler:]
Added
-[UNUserNotificationCenter removeDeliveredNotificationsWithIdentifiers:]
Added
-[UNUserNotificationCenter removeAllDeliveredNotifications]
Added
UNNotificationPresentationOptions
Added
UNNotificationPresentationOptionBadge
Added
UNNotificationPresentationOptionSound
Added
UNNotificationPresentationOptionAlert
Added
UNNotificationPresentationOptionNone
Added
UNUserNotificationCenterDelegate
Added
-[UNUserNotificationCenterDelegate userNotificationCenter:willPresentNotification:withCompletionHandler:]
Added
-[UNUserNotificationCenterDelegate userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:]
Added
-[UNUserNotificationCenterDelegate userNotificationCenter:openSettingsForNotification:]