Skip to content

UserNotifications watchOS xcode14.0 beta2

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-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h	2022-05-31 15:02:28.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h	2022-06-17 14:30:08.000000000 -0400
@@ -84,7 +84,7 @@
 // Relevance score determines the sorting for the notification across app notifications. The expected range is between 0.0f and 1.0f.
 @property (NS_NONATOMIC_IOSONLY, readonly, assign) double relevanceScore API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
 
-@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSString *filterCriteria API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0));
+@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSString *filterCriteria API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0)) API_UNAVAILABLE(tvos);
 
 /**
  Contextualizes your UNNotificationContent object with other Apple SDK objects conforming to UNNotificationContentProviding. This will specialize the notification and decorate its look and behavior accordingly. For example, the notification will be treated as a message with an avatar and be promoted to the top of notification center if the object passed in is a valid INSendMessageIntent<UNNotificationContentProviding>. This throws an error with a UNErrorCode found in UNError.h if the UNNotificationContentProviding object is invalid. A valid UNNotificationContent result should not be mutated and be passed directly to UNUserNotificationCenter.
Clone this wiki locally