Skip to content

SensorKit iOS xcode14.2 rc

Alex Soto edited this page Dec 11, 2022 · 2 revisions

#SensorKit.framework https://github.com/xamarin/xamarin-macios/pull/17010

diff -ruN /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRDeviceUsageCategories.h /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRDeviceUsageCategories.h
--- /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRDeviceUsageCategories.h	2022-10-06 13:28:36.000000000 -0400
+++ /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRDeviceUsageCategories.h	2022-11-10 19:15:17.000000000 -0500
@@ -42,4 +42,33 @@
 SR_EXTERN SRDeviceUsageCategoryKey const SRDeviceUsageCategoryShopping API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
 SR_EXTERN SRDeviceUsageCategoryKey const SRDeviceUsageCategoryStickers API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
 
+// ** NOTE **
+// This API has only been reviewed internally for the C release without an SDK
+// The final version will appear in the E release
+NS_SWIFT_SENDABLE // Immutable with no mutable subclasses
+SR_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, macos) API_UNAVAILABLE(tvos)
+/*!
+ * @class SRSupplementalCategory
+ *
+ * @brief
+ * A supplemental category to provide more context than just the app category
+ *
+ * @discussion
+ * The app categories are very general. Providing a supplemental category will
+ * allow more context about the specific app while not revealing the exact app name.
+ */
+@interface SRSupplementalCategory : NSObject <NSCopying, NSSecureCoding>
+
+/*!
+ * @property identifier
+ * @brief An opaque identifier for the supplemental category
+ * @discussion More information about what this category represents can be found in Apple's developer documentation
+ */
+@property (nonatomic, readonly) NSString *identifier;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRKeyboardMetrics.h /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRKeyboardMetrics.h
--- /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRKeyboardMetrics.h	2022-10-06 14:45:03.000000000 -0400
+++ /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRKeyboardMetrics.h	2022-11-10 19:15:17.000000000 -0500
@@ -145,6 +145,13 @@
 /// The duration between touch down to touch down for any key
 @property (readonly, strong) SRKeyboardProbabilityMetric<NSUnitDuration *> *touchDownDown;
 
+/**
+ * WARNING!!! Availability for touchUpDown metrics is not accurate,
+ * since we're introducing these in C which doesn't have an SDK !!!
+ */
+/// The duration between touch up to touch down for any key
+@property (readonly, strong) SRKeyboardProbabilityMetric<NSUnitDuration *> *touchUpDown API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
+
 /// The duration between touchup on a character key and touch down on a word in the prediction bar
 @property (readonly, strong) SRKeyboardProbabilityMetric<NSUnitDuration *> *charKeyToPrediction;
 
@@ -244,6 +251,13 @@
 /// The duration between touch down and touch down of the character keys of all the long words in the session.
 @property (readonly, strong) NSArray<SRKeyboardProbabilityMetric<NSUnitDuration *> *> *longWordTouchDownDown;
 
+/**
+ * WARNING!!! Availability for longWordTouchUpDown metrics is not accurate,
+ * since we're introducing these in C which doesn't have an SDK !!!
+ */
+/// The duration between touch up and touch down of the character keys of all the long words in the session.
+@property (readonly, strong) NSArray<SRKeyboardProbabilityMetric<NSUnitDuration *> *> *longWordTouchUpDown API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
+
 /// The duration between touchup of the delete key and touch down of a sequential delete key
 @property (readonly, strong) NSArray<SRKeyboardProbabilityMetric<NSUnitDuration *> *> *deleteToDeletes;
 
diff -ruN /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h
--- /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h	2022-10-06 14:45:04.000000000 -0400
+++ /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h	2022-11-10 19:17:35.000000000 -0500
@@ -98,6 +98,13 @@
  */
 @property (readonly, copy) NSArray<SRTextInputSession *> *textInputSessions API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
 
+/*!
+ * @property supplementalCategories
+ *
+ * @brief
+ * Additional categories that describe this app
+ */
+@property (readonly, copy) NSArray<SRSupplementalCategory *> *supplementalCategories API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
 @end
 
 typedef NS_ENUM(NSInteger, SRNotificationEvent) {
Clone this wiki locally