Skip to content

AVKit tvOS xcode26.0 b1

Rolf Bjarne Kvinge edited this page Aug 11, 2025 · 3 revisions

#AVKit.framework https://github.com/dotnet/macios/pull/23541

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h	2025-04-19 04:28:43
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h	2025-05-25 02:15:37
@@ -40,12 +40,12 @@
 				The recording failed.
  */
 typedef NS_ENUM(NSInteger, AVKitError) {
-	AVKitErrorUnknown																					= -1000,
-	AVKitErrorPictureInPictureStartFailed API_UNAVAILABLE(watchos)										= -1001,
-	
+	AVKitErrorUnknown																						= -1000,
+	AVKitErrorPictureInPictureStartFailed API_UNAVAILABLE(watchos)											= -1001,
+
 	AVKitErrorContentRatingUnknown API_AVAILABLE(tvos(13.0)) API_UNAVAILABLE(ios, visionos, watchos)		= -1100,
 	AVKitErrorContentDisallowedByPasscode API_AVAILABLE(tvos(13.0)) API_UNAVAILABLE(ios, visionos, watchos)	= -1101,
 	AVKitErrorContentDisallowedByProfile API_AVAILABLE(tvos(13.0)) API_UNAVAILABLE(ios, visionos, watchos)	= -1102,
-	
+
 	AVKitErrorRecordingFailed API_UNAVAILABLE(watchos) API_UNAVAILABLE(ios, tvos, visionos)				= -1200,
 } API_AVAILABLE(ios(9.0), tvos(13.0), visionos(1.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(macos);
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h	2025-04-19 04:28:42
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h	2025-05-25 02:15:37
@@ -37,10 +37,14 @@
 
 #endif // TARGET_OS_OSX
 
+#if TARGET_OS_IOS
+#import <AVKit/AVInputPickerInteraction.h>
+#endif // TARGET_OS_IOS
 
 #if TARGET_OS_IOS && !TARGET_OS_VISION
-#import <AVKit/AVCaptureEventInteraction.h>
 #import <AVKit/AVCaptureEvent.h>
+#import <AVKit/AVCaptureEventInteraction.h>
+#import <AVKit/AVCaptureEventSound.h>
 #import <AVKit/AVError.h>
 #import <AVKit/AVPictureInPictureController.h>
 #import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h	2025-04-19 04:28:43
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h	2025-05-25 02:15:37
@@ -70,3 +70,10 @@
 #else
 #define AVKitPlatformColorClass NSColor
 #endif // TARGET_OS_IPHONE
+
+
+#if TARGET_OS_IPHONE
+#define AVKitPlatformFontClass UIFont
+#else
+#define AVKitPlatformFontClass NSFont
+#endif // TARGET_OS_IPHONE
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h	2025-04-19 04:28:43
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h	2025-05-25 02:15:38
@@ -38,3 +38,17 @@
 	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);
+
+/*!
+ Describes how High Dynamic Range (HDR) video content renders.
+ */
+typedef NS_ENUM(NSInteger, AVDisplayDynamicRange) {
+	/// Defines an automatic dynamic range. Indicates that the dynamic range will be set automatically.
+	AVDisplayDynamicRangeAutomatic 			= 0,
+	/// Defines a standard dynamic range. Restricts the video content dynamic range to the standard range regardless of the actual range of the video content.
+	AVDisplayDynamicRangeStandard 			= 1,
+	/// Defines a constrained high dynamic range. Allows for constrained High Dynamic Range (HDR) video content which is useful for mixing HDR and Standard Dynamic Range (SDR) content.
+	AVDisplayDynamicRangeConstrainedHigh	= 2,
+	/// Defines a high dynamic range. Allows video content to use extended dynamic range if it has dynamic range content.
+	AVDisplayDynamicRangeHigh 				= 3
+} API_AVAILABLE(ios(26.0), macos(26.0)) API_UNAVAILABLE(tvos, visionos, watchos);
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h	2025-04-19 05:04:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h	2025-05-25 02:33:25
@@ -32,7 +32,6 @@
 } API_AVAILABLE(tvos(10.0)) API_UNAVAILABLE(macos, ios, watchos, visionos);
 
 
-
 @class AVContentProposal;
 @class AVGroupExperienceCoordinator;
 @class AVInterstitialTimeRange;
@@ -282,6 +281,14 @@
  */
 @property (nonatomic) BOOL requiresMonoscopicViewingMode API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, tvos, watchos, macCatalyst);
 
+/*!
+ Describes how High Dynamic Range (HDR) video content renders.
+ 
+ Defaults to ``AVDisplayDynamicRangeAutomatic``.
+ 
+ - Note: This property will only have effect if the video content supports HDR.
+ */
+@property (nonatomic, assign, readwrite) AVDisplayDynamicRange preferredDisplayDynamicRange API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(tvos, visionos, watchos);
 
 
 // MARK: - Contextual Actions
@@ -357,6 +364,15 @@
 				Documentation on how to export a new copy of the asset via `AVAssetExportSession` after trimming can be found at https://developer.apple.com.
  */
 - (void)beginTrimmingWithCompletionHandler:(nullable void (^)(BOOL success))handler API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, tvos, watchos, macCatalyst);
+
+
+// MARK: - Custom Media Selection Schemes
+
+/*!
+	@property	mediaCharacteristicsForSupportedCustomMediaSelectionSchemes
+	@abstract	Returns available AVKit supported media group types.
+ */
+@property (class, readonly) NSArray <AVMediaCharacteristic> *mediaCharacteristicsForSupportedCustomMediaSelectionSchemes API_AVAILABLE(ios(26.0), tvos(26.0)) API_UNAVAILABLE(macos, visionos, watchos);
 
 @end
 
Clone this wiki locally