Skip to content

SensorKit iOS xcode14.3 beta2

Alex Soto edited this page Mar 15, 2023 · 2 revisions

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

diff -ruN /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h /Applications/Xcode_14.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h
--- /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h	2023-02-11 16:41:35
+++ /Applications/Xcode_14.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SensorKit.framework/Headers/SRUsageReports.h	2023-02-25 10:21:56
@@ -66,6 +66,12 @@
 
 @property (readonly) SRTextInputSessionType sessionType;
 
+/*!
+ * @property sessionIdentifier
+ *
+ * @brief Unique identifier of keyboard session
+ */
+@property (readonly) NSString *sessionIdentifier API_AVAILABLE(ios(16.4)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
 @end
 
 SR_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos)
@@ -108,6 +114,17 @@
  * Additional categories that describe this app
  */
 @property (nonatomic, readonly, copy) NSArray<SRSupplementalCategory *> *supplementalCategories API_AVAILABLE(ios(16.4)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
+
+/*!
+ * @property relativeStartTime
+ *
+ * @brief App start time relative to the first app start time in the report interval
+ *
+ * @discussion
+ * relativeStartTime value for the very first app in the report interval is equal to 0, N seconds for the seccond app and so on.
+ * This will allow to order app uses and determine the time between app uses.
+ */
+@property (readonly, nonatomic) NSTimeInterval relativeStartTime API_AVAILABLE(ios(16.4)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos, macos);
 @end
 
 typedef NS_ENUM(NSInteger, SRNotificationEvent) {
Clone this wiki locally