Skip to content

UserNotifications macOS xcode13.0 beta2

tj_devel709 edited this page Jul 19, 2021 · 3 revisions

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

diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h	2021-06-02 12:47:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h	2021-06-17 04:15:37.000000000 -0400
@@ -69,13 +69,13 @@
 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSDictionary *userInfo API_UNAVAILABLE(tvos);
 
 /// The argument to be inserted in the summary for this notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *summaryArgument API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *summaryArgument API_DEPRECATED("summaryArgument is ignored", ios(12.0, 15.0), watchos(5.0, 8.0), tvos(12.0, 15.0));
 
 /// A number that indicates how many items in the summary are represented in the summary.
 /// For example if a podcast app sends one notification for 3 new episodes in a show,
 /// the argument should be the name of the show and the count should be 3.
 /// Default is 1 and cannot be 0.
-@property (NS_NONATOMIC_IOSONLY, readonly, assign) NSUInteger summaryArgumentCount API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, assign) NSUInteger summaryArgumentCount API_DEPRECATED("summaryArgumentCount is ignored", ios(12.0, 15.0), watchos(5.0, 8.0), tvos(12.0, 15.0));
 
 // An identifier for the content of the notification used by the system to customize the scene to be activated when tapping on a notification.
 @property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSString *targetContentIdentifier API_AVAILABLE(ios(13.0)); // default nil
@@ -132,13 +132,13 @@
 @property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSDictionary *userInfo API_UNAVAILABLE(tvos);
 
 /// The argument to be inserted in the summary for this notification.
-@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *summaryArgument API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *summaryArgument API_DEPRECATED("summaryArgument is ignored", ios(12.0, 15.0), watchos(5.0, 8.0), tvos(12.0, 15.0));
 
 /// A number that indicates how many items in the summary are represented in the summary.
 /// For example if a podcast app sends one notification for 3 new episodes in a show,
 /// the argument should be the name of the show and the count should be 3.
 /// Default is 1 and cannot be 0.
-@property (NS_NONATOMIC_IOSONLY, readwrite, assign) NSUInteger summaryArgumentCount API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, assign) NSUInteger summaryArgumentCount API_DEPRECATED("summaryArgumentCount is ignored", ios(12.0, 15.0), watchos(5.0, 8.0), tvos(12.0, 15.0));
 
 // An identifier for the content of the notification used by the system to customize the scene to be activated when tapping on a notification.
 @property (NS_NONATOMIC_IOSONLY, readwrite, copy, nullable) NSString *targetContentIdentifier API_AVAILABLE(ios(13.0)); // default nil
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h	2021-06-02 11:07:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h	2021-06-17 03:45:55.000000000 -0400
@@ -81,6 +81,8 @@
 
 @property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting scheduledDeliverySetting API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0)) API_UNAVAILABLE(tvos);
 
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting directMessagesSetting API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0)) API_UNAVAILABLE(tvos);
+
 - (instancetype)init NS_UNAVAILABLE;
 
 @end
Clone this wiki locally