Skip to content

UserNotifications tvOS xcode14.0 beta3

Manuel de la Pena edited this page Jul 19, 2022 · 3 revisions

#UserNotifications.framework https://github.com/xamarin/xamarin-macios/pull/15544

diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h	2022-06-17 13:48:59.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h	2022-06-30 08:29:06.000000000 -0500
@@ -24,4 +24,6 @@
     
     UNErrorCodeContentProvidingObjectNotAllowed = 1500,
     UNErrorCodeContentProvidingInvalid,
+    
+    UNErrorCodeBadgeInputInvalid = 1600,
 } API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h	2022-06-17 13:30:08.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h	2022-06-30 20:58:51.000000000 -0500
@@ -74,6 +74,8 @@
 - (void)removeDeliveredNotificationsWithIdentifiers:(NSArray<NSString *> *)identifiers API_UNAVAILABLE(tvos);
 - (void)removeAllDeliveredNotifications API_UNAVAILABLE(tvos);
 
+- (void)setBadgeCount:(NSInteger)newBadgeCount withCompletionHandler:(nullable void(^)(NSError *__nullable error))completionHandler API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0)) API_UNAVAILABLE(watchos);
+
 @end
 
 typedef NS_OPTIONS(NSUInteger, UNNotificationPresentationOptions) {
Clone this wiki locally