Skip to content

ScreenCaptureKit macOS xcode15.0 b6

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-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/RPReportingAgent.h /Applications/Xcode_15.0.0-beta6.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	2023-07-15 02:59:27
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/RPReportingAgent.h	1969-12-31 19:00:00
@@ -1,55 +0,0 @@
-//
-// RPReportingAgent.h
-// replayd
-//
-// Created by Karthick Santhanam on 6/27/17.
-// Copyright © 2017 Apple Inc. All rights reserved.
-//
-#import <TargetConditionals.h>
-#if !TARGET_OS_SIMULATOR
-
-#import <Foundation/Foundation.h>
-#import <CoreGraphics/CoreGraphics.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-#define RP_REPORTING_CLIENT_NAME @"ReplayKit"
-
-#define RP_REPORTING_SERVICE_NAME_SYSTEM_RECORDING      @"SystemRecording"
-#define RP_REPORTING_SERVICE_NAME_SYSTEM_BROADCAST      @"SystemBroadcast"
-#define RP_REPORTING_SERVICE_NAME_IN_APP_RECORDING      @"InAppRecording"
-#define RP_REPORTING_SERVICE_NAME_IN_APP_BROADCAST      @"InAppBroadcast"
-#define RP_REPORTING_SERVICE_NAME_IN_APP_CAPTURE        @"InAppCapture"
-#define RP_REPORTING_SERVICE_NAME_IN_APP_CLIP           @"InAppClip"
-#define RP_REPORTING_SERVICE_NAME_SCREEN_CAPTURE_KIT    @"SCKCapture"
-
-#define RP_REPORTING_SUMMARY_EVENT            1
-#define RP_REPORTING_END_REASON_SUMMARY_EVENT 2
-#define RP_REPORTING_SCREENSHOT_EVENT         3
-
-@interface RPReportingAgent : NSObject
-
-@property (nonatomic, strong) NSString *serviceName;
-@property (nonatomic, assign) NSTimeInterval activeDuration;    // in seconds
-@property (nonatomic, assign) CGSize videoCaptureSize;
-@property (nonatomic, assign) NSInteger videoCaptureRate;
-@property (nonatomic, assign) NSInteger videoFrameCount;
-@property (nonatomic, assign) NSInteger appAudioFrameCount;
-@property (nonatomic, assign) NSInteger micFrameCount;
-@property (nonatomic, assign) BOOL frontCameraUsed;
-@property (nonatomic, assign) BOOL backCameraUsed;
-@property (nonatomic, assign) NSUInteger recordedFileSize; // in bytes
-@property (nonatomic, assign) NSInteger endReason;
-
-- (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
-
-NS_ASSUME_NONNULL_END
-
-#endif // !TARGET_OS_SIMULATOR
diff -ruN /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-beta6.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	2023-07-15 02:59:27
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Headers/SCStream.h	2023-08-04 01:00:01
@@ -340,6 +340,12 @@
  */
 extern SCStreamFrameInfo const SCStreamFrameInfoScreenRect API_AVAILABLE(macos(13.1));
 
+/*!
+ @key SCStreamFrameInfoBoundingRect
+ @abstract The key for the CFDictionary attached to the CMSampleBuffer for the bounding rect associated with the frame. Bounding rect is the size and location of smallest bounding box containing all captured windows in points and in surface coordinates.
+ */
+extern SCStreamFrameInfo const SCStreamFrameInfoBoundingRect API_AVAILABLE(macos(14.0));
+
 @protocol SCStreamOutput;
 API_AVAILABLE(macos(12.3))
 @interface SCStream : NSObject
Clone this wiki locally