diff --git a/src/avfoundation.cs b/src/avfoundation.cs index 12ad3bd5eb6c..aeef15dd114f 100644 --- a/src/avfoundation.cs +++ b/src/avfoundation.cs @@ -11416,9 +11416,10 @@ interface AVCaptureDeviceDiscoverySession { /// Enumerates the types of device that can capture audiovisual data. [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV, NoWatch] + [TV (17, 0), NoWatch] enum AVCaptureDeviceType { + [NoTV] [Field ("AVCaptureDeviceTypeBuiltInMicrophone")] BuiltInMicrophone, @@ -11430,6 +11431,7 @@ enum AVCaptureDeviceType { [Field ("AVCaptureDeviceTypeBuiltInTelephotoCamera")] BuiltInTelephotoCamera, + [NoTV] [NoMac] [Deprecated (PlatformName.iOS, 10, 2, message: "Use 'BuiltInDualCamera' instead.")] [MacCatalyst (13, 1)] @@ -11466,9 +11468,14 @@ enum AVCaptureDeviceType { [Field ("AVCaptureDeviceTypeExternalUnknown")] ExternalUnknown, - [NoWatch, NoTV, NoMac, MacCatalyst (15, 4), iOS (15, 4)] + [NoWatch, TV (17, 0), NoMac, MacCatalyst (15, 4), iOS (15, 4)] [Field ("AVCaptureDeviceTypeBuiltInLiDARDepthCamera")] BuiltInLiDarDepthCamera, + + [NoWatch] + [iOS (17, 0), MacCatalyst (17, 0), TV (17, 0), Mac (14, 0)] + [Field ("AVCaptureDeviceTypeExternal")] + External, } [NoTV, NoWatch] // matches API that uses it. diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt index bb122cdc876a..d099a281ea60 100644 --- a/tests/cecil-tests/Documentation.KnownFailures.txt +++ b/tests/cecil-tests/Documentation.KnownFailures.txt @@ -5150,6 +5150,7 @@ F:AVFoundation.AVCaptureDeviceType.BuiltInTripleCamera F:AVFoundation.AVCaptureDeviceType.BuiltInTrueDepthCamera F:AVFoundation.AVCaptureDeviceType.BuiltInUltraWideCamera F:AVFoundation.AVCaptureDeviceType.BuiltInWideAngleCamera +F:AVFoundation.AVCaptureDeviceType.External F:AVFoundation.AVCaptureDeviceType.ExternalUnknown F:AVFoundation.AVCaptureExposureMode.AutoExpose F:AVFoundation.AVCaptureExposureMode.ContinuousAutoExposure diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.todo index 2fd2d2077c86..a7ea9aa30942 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.todo @@ -317,7 +317,6 @@ !missing-field! AVAudioSessionRenderingModeChangeNotification not bound !missing-field! AVAudioSessionRenderingModeNewRenderingModeKey not bound !missing-field! AVCaptureDeviceTypeContinuityCamera not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureReactionTypeBalloons not bound !missing-field! AVCaptureReactionTypeConfetti not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.todo index 5c2b6c243f35..a67d1ae8ec10 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.todo @@ -321,7 +321,6 @@ !missing-field! AVAudioApplicationInputMuteStateChangeNotification not bound !missing-field! AVAudioApplicationMuteStateKey not bound !missing-field! AVAudioSessionPortContinuityMicrophone not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureReactionTypeBalloons not bound !missing-field! AVCaptureReactionTypeConfetti not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.todo index 8caeb786fee9..6f4687b02ca3 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.todo @@ -316,7 +316,6 @@ !missing-field! AVAssetExportPresetMVHEVC960x960 not bound !missing-field! AVAudioApplicationInputMuteStateChangeNotification not bound !missing-field! AVAudioApplicationMuteStateKey not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureReactionTypeBalloons not bound !missing-field! AVCaptureReactionTypeConfetti not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.todo index 0081157c3d7b..aa96b7d8f3af 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.todo @@ -315,16 +315,7 @@ !missing-field! AVAudioApplicationMuteStateKey not bound !missing-field! AVAudioSessionPortContinuityMicrophone not bound !missing-field! AVCaptureDeviceSubjectAreaDidChangeNotification not bound -!missing-field! AVCaptureDeviceTypeBuiltInDualCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInDualWideCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInLiDARDepthCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInTelephotoCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInTripleCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInTrueDepthCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInUltraWideCamera not bound -!missing-field! AVCaptureDeviceTypeBuiltInWideAngleCamera not bound !missing-field! AVCaptureDeviceTypeContinuityCamera not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureDeviceWasConnectedNotification not bound !missing-field! AVCaptureDeviceWasDisconnectedNotification not bound diff --git a/tests/xtro-sharpie/iOS-AVFoundation.todo b/tests/xtro-sharpie/iOS-AVFoundation.todo index 5c2b6c243f35..a67d1ae8ec10 100644 --- a/tests/xtro-sharpie/iOS-AVFoundation.todo +++ b/tests/xtro-sharpie/iOS-AVFoundation.todo @@ -321,7 +321,6 @@ !missing-field! AVAudioApplicationInputMuteStateChangeNotification not bound !missing-field! AVAudioApplicationMuteStateKey not bound !missing-field! AVAudioSessionPortContinuityMicrophone not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureReactionTypeBalloons not bound !missing-field! AVCaptureReactionTypeConfetti not bound diff --git a/tests/xtro-sharpie/macOS-AVFoundation.todo b/tests/xtro-sharpie/macOS-AVFoundation.todo index 8caeb786fee9..6f4687b02ca3 100644 --- a/tests/xtro-sharpie/macOS-AVFoundation.todo +++ b/tests/xtro-sharpie/macOS-AVFoundation.todo @@ -316,7 +316,6 @@ !missing-field! AVAssetExportPresetMVHEVC960x960 not bound !missing-field! AVAudioApplicationInputMuteStateChangeNotification not bound !missing-field! AVAudioApplicationMuteStateKey not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureReactionTypeBalloons not bound !missing-field! AVCaptureReactionTypeConfetti not bound diff --git a/tests/xtro-sharpie/tvOS-AVFoundation.todo b/tests/xtro-sharpie/tvOS-AVFoundation.todo index 0081157c3d7b..8dc49ab9acf6 100644 --- a/tests/xtro-sharpie/tvOS-AVFoundation.todo +++ b/tests/xtro-sharpie/tvOS-AVFoundation.todo @@ -324,7 +324,6 @@ !missing-field! AVCaptureDeviceTypeBuiltInUltraWideCamera not bound !missing-field! AVCaptureDeviceTypeBuiltInWideAngleCamera not bound !missing-field! AVCaptureDeviceTypeContinuityCamera not bound -!missing-field! AVCaptureDeviceTypeExternal not bound !missing-field! AVCaptureDeviceTypeMicrophone not bound !missing-field! AVCaptureDeviceWasConnectedNotification not bound !missing-field! AVCaptureDeviceWasDisconnectedNotification not bound