Skip to content

ScreenCaptureKit macOS xcode15.0 b5

Haritha Mohan edited this page Sep 7, 2023 · 3 revisions

#ScreenCaptureKit.framework https://github.com/xamarin/xamarin-macios/pull/18965

diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/RPReportingAgent.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/RPReportingAgent.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/RPReportingAgent.h	2023-06-30 01:02:02
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/RPReportingAgent.h	2023-07-15 02:59:27
@@ -44,7 +44,9 @@
 - (instancetype)initWithServiceName:(NSString *)serviceName;
 - (NSDictionary *)collectSummaryEventMetrics;
 - (void)reportEventWithType:(uint16_t)eventType dictionary:(NSDictionary *)payloadDict clientBundleId:(NSString *)clientBundleId;
+- (void)reportSCEventWithType:(uint16_t)eventType dictionary:(NSDictionary *)payloadDict streamID:(NSString *)streamID;
 + (void)reportSessionEnded:(uint16_t)eventType endReason:(NSError *)endReason withServiceName:(NSString *)serviceName clientBundleId:(NSString *)clientBundleId;
++ (void)reportSCSessionEnded:(uint16_t)eventType endReason:(NSError *)endReason streamID:(NSString *)streamID;
 
 @end
 
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCError.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCError.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCError.h	2023-06-30 01:02:02
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCError.h	2023-07-15 02:59:27
@@ -9,6 +9,7 @@
 extern NSString *const __nonnull SCStreamErrorDomain;
 
 NS_ASSUME_NONNULL_BEGIN
+API_AVAILABLE(macos(12.3))
 typedef NS_ERROR_ENUM (SCStreamErrorDomain, SCStreamErrorCode) {
     SCStreamErrorUserDeclined API_AVAILABLE(macos(12.3)) = -3801,                           // The user chose not to authorize capture
     SCStreamErrorFailedToStart API_AVAILABLE(macos(12.3)) = -3802,                          // The stream failed to start
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCStream.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCStream.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCStream.h	2023-06-30 01:02:02
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCStream.h	2023-07-15 02:59:27
@@ -47,6 +47,20 @@
 };
 
 /*!
+ @typedef SCPresenterOverlayAlertSetting
+ @abstract SCPresenterOverlayAlertSetting denotes the setting that can be set to determine when to show the presenter overlay alert for any stream
+ @constant SCPresenterOverlayAlertSettingSystem allow the system to determine when to show the presenter overlay privacy alert.
+ @constant SCPresenterOverlayAlertSettingNever never show the presenter overlay privacy alert.
+ @constant SCPresenterOverlayAlertAlways always show the presenter overlay privacy alert.
+*/
+
+typedef NS_ENUM(NSInteger, SCPresenterOverlayAlertSetting) {
+    SCPresenterOverlayAlertSettingSystem,
+    SCPresenterOverlayAlertSettingNever,
+    SCPresenterOverlayAlertSettingAlways
+} API_AVAILABLE(macos(14.0));
+
+/*!
  @typedef SCStreamType
  @abstract SCStreamTypeWindow window stream
  @constant SCStreamTypeDisplay display stream
@@ -183,7 +197,7 @@
 @property(nonatomic, assign) BOOL showsCursor;
 
 /*!
- @abstract SCStreamProperty for background color. By default the background color is white.
+ @abstract SCStreamProperty for background color. By default the background color is clear.
  */
 @property(nonatomic, assign) CGColorRef backgroundColor;
 
@@ -267,6 +281,11 @@
  @abstract SCStreamProperty to ignore framing on windows in the single window sharing case (will ignore shadows).
  */
 @property(nonatomic, assign) BOOL ignoreGlobalClipSingleWindow API_AVAILABLE(macos(14.0));
+
+/*!
+ @abstract SCStreamProperty that informs the system if a privacy alert should be shown when using presenter overlay for a stream. Defaults to SCPresenterOverlayAlertSettingSystem;
+ */
+@property(nonatomic, assign) SCPresenterOverlayAlertSetting presenterOverlayPrivacyAlertSetting API_AVAILABLE(macos(14.0));
 
 @end
 
Clone this wiki locally