Skip to content

AVKit watchOS xcode15.0 b1

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

#AVKit.framework https://github.com/xamarin/xamarin-macios/pull/19022

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h	2023-03-04 18:37:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h	2023-05-19 22:29:23
@@ -3,8 +3,92 @@
 	
 	Framework:  AVKit
 	
-	Copyright © 2015-2020 Apple Inc. All rights reserved.
+	Copyright © 2013-2023 Apple Inc. All rights reserved.
 	
 	To report bugs, go to:  http://developer.apple.com/bugreporter/
-	
+
  */
+
+#import <Availability.h>
+#import <TargetConditionals.h>
+
+
+#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
+#import <AVKitCore/AVKitDefines.h>
+#if __has_include(<AVKit/AVKitCore.h>)
+#import <AVKit/AVKitCore.h>
+#else
+#import <AVKitCore/AVKitCore.h>
+#endif // __has_include(<AVKit/AVKitCore.h>)
+
+#else
+#import <AVKit/AVKitDefines.h>
+#import <AVKit/AVKitTypes.h>
+
+#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
+
+
+#if TARGET_OS_OSX
+#import <AVKit/AVCaptureView.h>
+#import <AVKit/AVPictureInPictureController.h>
+#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
+#import <AVKit/AVPlayerView.h>
+#import <AVKit/AVRoutePickerView.h>
+
+#endif // TARGET_OS_OSX
+
+
+#if TARGET_OS_IOS && !TARGET_OS_XR
+#import <AVKit/AVError.h>
+#import <AVKit/AVPictureInPictureController.h>
+#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
+#import <AVKit/AVPictureInPictureController_VideoCallSupport.h>
+#import <AVKit/AVPlaybackRouteSelecting.h>
+#import <AVKit/AVPlayerItem+AVKitAdditions.h>
+#import <AVKit/AVPlayerViewController.h>
+#import <AVKit/AVRoutePickerView.h>
+
+// Catalyst excluded headers
+#if !TARGET_OS_MACCATALYST
+#import <AVKit/AVInterstitialTimeRange.h>
+// Included in AVKitCore on catalyst
+#import <AVKit/AVPlaybackSpeed.h>
+#endif
+
+#endif // TARGET_OS_IOS && !TARGET_OS_XR
+
+
+#if TARGET_OS_TV
+#import <AVKit/AVContentProposal.h>
+#import <AVKit/AVContentProposalViewController.h>
+#import <AVKit/AVContinuityDevicePickerViewController.h>
+#import <AVKit/AVDisplayManager.h>
+#import <AVKit/AVError.h>
+#import <AVKit/AVInterstitialTimeRange.h>
+#import <AVKit/AVNavigationMarkersGroup.h>
+#import <AVKit/AVPictureInPictureController.h>
+#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
+#import <AVKit/AVPlaybackSpeed.h>
+#import <AVKit/AVPlayerItem.h>
+#import <AVKit/AVPlayerViewController.h>
+#import <AVKit/AVRoutePickerView.h>
+#import <AVKit/UIWindow.h>
+
+#endif // TARGET_OS_TV
+
+
+#if TARGET_OS_XR
+#import <AVKit/AVDisplayManager.h>
+#import <AVKit/AVError.h>
+#import <AVKit/AVInterstitialTimeRange.h>
+#import <AVKit/AVPictureInPictureController.h>
+#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
+#import <AVKit/AVPictureInPictureController_VideoCallSupport.h>
+#import <AVKit/AVPlaybackRouteSelecting.h>
+#import <AVKit/AVPlaybackSpeed.h>
+#import <AVKit/AVPlayerItem+AVKitAdditions.h>
+#import <AVKit/AVPlayerViewController.h>
+#import <AVKit/AVRoutePickerView.h>
+#import <AVKit/UIWindow_AVAdditions.h>
+
+#endif // TARGET_OS_XR
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h	2023-05-19 22:29:23
@@ -0,0 +1,53 @@
+/*
+	File:  AVKitDefines.h
+	
+	Framework:  AVKit
+	
+	Copyright © 2014-2016 Apple Inc. All rights reserved.
+	
+ */
+
+#import <Availability.h>
+#import <TargetConditionals.h>
+
+#ifdef __cplusplus
+#define AVKIT_EXTERN	extern "C" __attribute__((visibility ("default")))
+#else
+#define AVKIT_EXTERN	extern __attribute__((visibility ("default")))
+#endif
+
+
+#if !TARGET_IS_AVKITMACHELPER
+#define AVKIT_ONLY_EXTERN AVKIT_EXTERN
+#define AVKIT_ONLY_API_AVAILABLE(...) API_AVAILABLE(__VA_ARGS__)
+
+#define AVKIT_ONLY_API_AVAILABLE(...) API_AVAILABLE(__VA_ARGS__)
+#define AVKIT_ONLY_API_DEPRECATED_WITH_REPLACEMENT(...) API_DEPRECATED_WITH_REPLACEMENT(__VA_ARGS__)
+
+#else
+#define AVKIT_ONLY_EXTERN extern __attribute__((visibility ("hidden")))
+#define AVKIT_ONLY_API_AVAILABLE(...)
+
+#define AVKIT_ONLY_API_DEPRECATED_WITH_REPLACEMENT(...)
+
+#endif
+
+
+#define PLATFORM_SUPPORTS_AVKITCORE (TARGET_OS_OSX || TARGET_OS_MACCATALYST)
+
+
+#define AVKIT_INIT_UNAVAILABLE	- (instancetype)init NS_UNAVAILABLE; \
+								+ (instancetype)new  NS_UNAVAILABLE;
+
+
+#if TARGET_OS_IPHONE
+#define AVKitPlatformViewClass UIView
+#else
+#define AVKitPlatformViewClass NSView
+#endif // TARGET_OS_IPHONE
+
+#if TARGET_OS_IPHONE
+#define AVKitPlatformColorClass UIColor
+#else
+#define AVKitPlatformColorClass NSColor
+#endif // TARGET_OS_IPHONE
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h	2023-05-19 22:29:23
@@ -0,0 +1,40 @@
+/*
+	File:  AVKitTypes.h
+	
+	Framework:  AVKit
+	
+	Copyright © 2014-2023 Apple Inc. All rights reserved.
+	
+ */
+
+#import <Foundation/Foundation.h>
+
+/*!
+ @enum			AVVideoFrameAnalysisType
+ @abstract      The types of items that AVPlayerViewController analyzes in a paused video frame.
+ 
+ @constant		AVVideoFrameAnalysisTypeNone
+				Defines no items to be analyzed by the analyzer.
+ @constant		AVVideoFrameAnalysisTypeDefault
+				Defines the default set of analysis types.
+ 
+ @constant		AVVideoFrameAnalysisTypeText
+				Text that appears in a paused video frame.
+ @constant		AVVideoFrameAnalysisTypeSubject
+				Subject that the user can copy out of frame.
+ @constant      AVVideoFrameAnalysisTypeVisualSearch
+				Objects, landmarks, art, etc. recognized visually in a paused video frame.
+ @constant      AVVideoFrameAnalysisTypeMachineReadableCode
+				Machine-readable codes, such as QR codes, that appear in a paused video frame.
+ */
+typedef NS_OPTIONS(NSUInteger, AVVideoFrameAnalysisType) {
+	
+	AVVideoFrameAnalysisTypeNone	    																					 = 0,
+	AVVideoFrameAnalysisTypeDefault 																					   	 = 1 << 0,
+	
+	AVVideoFrameAnalysisTypeText	    																					 = 1 << 1,
+	AVVideoFrameAnalysisTypeSubject	    																					 = 1 << 2,
+	AVVideoFrameAnalysisTypeVisualSearch   		 																			 = 1 << 3,
+	AVVideoFrameAnalysisTypeMachineReadableCode API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, tvos, watchos, macCatalyst)  = 1 << 4,
+	
+} API_AVAILABLE(ios(17.0), macos(14.0)) API_UNAVAILABLE(tvos, watchos);
Clone this wiki locally