Skip to content

Commit 20a18e3

Browse files
authored
[AVKit] Implement Xcode 15 + Xcode 16.0 beta 1, beta 2 and beta 3 changes. (#20849)
Note: there were no changes in beta 2 or beta 3.
1 parent 451d2dd commit 20a18e3

File tree

9 files changed

+31
-14
lines changed

9 files changed

+31
-14
lines changed

src/AVKit/Enums.cs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public enum AVKitError : long {
3535
ContentRatingUnknown = -1100,
3636
ContentDisallowedByPasscode = -1101,
3737
ContentDisallowedByProfile = -1102,
38+
RecordingFailed = -1200,
3839
}
3940

4041
[NoWatch]

src/avkit.cs

+20
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@
5050
#endif
5151

5252
namespace AVKit {
53+
[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
54+
[Native]
55+
enum AVVideoFrameAnalysisType : ulong {
56+
AVVideoFrameAnalysisTypeNone = 0,
57+
AVVideoFrameAnalysisTypeDefault = 1 << 0,
58+
AVVideoFrameAnalysisTypeText = 1 << 1,
59+
AVVideoFrameAnalysisTypeSubject = 1 << 2,
60+
AVVideoFrameAnalysisTypeVisualSearch = 1 << 3,
61+
[NoMac, NoMacCatalyst]
62+
AVVideoFrameAnalysisTypeMachineReadableCode = 1 << 4,
63+
}
64+
5365
/// <summary>Provides video playback in a floating, resizable window on larger devices.</summary>
5466
///
5567
/// <related type="externalDocumentation" href="https://developer.apple.com/library/prerelease/ios/documentation/AVKit/Reference/AVPictureInPictureControllerDelegate_Protocol/index.html#//apple_ref/doc/uid/TP40016161">Apple documentation for <c>AVPictureInPictureController</c></related>
@@ -365,6 +377,14 @@ interface AVPlayerViewController {
365377
[iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, TV (16, 0)]
366378
[Export ("selectSpeed:")]
367379
void SelectSpeed (AVPlaybackSpeed speed);
380+
381+
[iOS (17, 0), MacCatalyst (18, 0), NoTV, NoWatch, NoMac]
382+
[Export ("videoFrameAnalysisTypes")]
383+
AVVideoFrameAnalysisType VideoFrameAnalysisTypes { get; set; }
384+
385+
[iOS (17, 0), MacCatalyst (18, 0), NoTV, NoWatch, NoMac]
386+
[Export ("toggleLookupAction")]
387+
UIAction ToggleLookupAction { get; }
368388
}
369389

370390
/// <summary>Interface representing the required methods (if any) of the protocol <see cref="T:AVKit.AVPlayerViewControllerDelegate" />.</summary>

tests/cecil-tests/Documentation.KnownFailures.txt

+10
Original file line numberDiff line numberDiff line change
@@ -5571,6 +5571,7 @@ F:AVKit.AVKitError.ContentDisallowedByProfile
55715571
F:AVKit.AVKitError.ContentRatingUnknown
55725572
F:AVKit.AVKitError.None
55735573
F:AVKit.AVKitError.PictureInPictureStartFailed
5574+
F:AVKit.AVKitError.RecordingFailed
55745575
F:AVKit.AVKitError.Unknown
55755576
F:AVKit.AVPlayerViewControlsStyle.Default
55765577
F:AVKit.AVPlayerViewControlsStyle.Floating
@@ -5586,6 +5587,12 @@ F:AVKit.AVRoutePickerViewButtonState.NormalHighlighted
55865587
F:AVKit.AVRoutePickerViewButtonStyle.Custom
55875588
F:AVKit.AVRoutePickerViewButtonStyle.Plain
55885589
F:AVKit.AVRoutePickerViewButtonStyle.System
5590+
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeDefault
5591+
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeMachineReadableCode
5592+
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeNone
5593+
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeSubject
5594+
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeText
5595+
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeVisualSearch
55895596
F:AVRouting.AVCustomRoutingEventReason.Activate
55905597
F:AVRouting.AVCustomRoutingEventReason.Deactivate
55915598
F:AVRouting.AVCustomRoutingEventReason.Reactivate
@@ -57782,11 +57789,13 @@ P:AVKit.AVPlayerViewController.SkipBackwardEnabled
5778257789
P:AVKit.AVPlayerViewController.SkipForwardEnabled
5778357790
P:AVKit.AVPlayerViewController.SkippingBehavior
5778457791
P:AVKit.AVPlayerViewController.Speeds
57792+
P:AVKit.AVPlayerViewController.ToggleLookupAction
5778557793
P:AVKit.AVPlayerViewController.TransportBarCustomMenuItems
5778657794
P:AVKit.AVPlayerViewController.TransportBarIncludesTitleView
5778757795
P:AVKit.AVPlayerViewController.UnobscuredContentGuide
5778857796
P:AVKit.AVPlayerViewController.UpdatesNowPlayingInfoCenter
5778957797
P:AVKit.AVPlayerViewController.VideoBounds
57798+
P:AVKit.AVPlayerViewController.VideoFrameAnalysisTypes
5779057799
P:AVKit.AVPlayerViewController.VideoGravity
5779157800
P:AVKit.AVPlayerViewController.WeakDelegate
5779257801
P:AVKit.AVPlayerViewController.WeakVideoGravity
@@ -77842,6 +77851,7 @@ T:AVKit.AVPlayerViewTrimResult
7784277851
T:AVKit.AVRoutePickerViewButtonState
7784377852
T:AVKit.AVRoutePickerViewButtonStyle
7784477853
T:AVKit.AVRoutePickerViewDelegate
77854+
T:AVKit.AVVideoFrameAnalysisType
7784577855
T:AVKit.IAVCaptureViewDelegate
7784677856
T:AVKit.IAVCustomRoutingControllerDelegate
7784777857
T:AVKit.IAVPictureInPictureSampleBufferPlaybackDelegate

tests/xtro-sharpie/api-annotations-dotnet/iOS-AVKit.todo

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
!missing-enum! AVVideoFrameAnalysisType not bound
21
!missing-selector! AVPlayerView::setVideoFrameAnalysisTypes: not bound
32
!missing-selector! AVPlayerView::videoFrameAnalysisTypes not bound

tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.todo

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
!missing-enum-value! AVKitError native value AVKitErrorRecordingFailed = -1200 not bound
21
!missing-null-allowed! 'System.Void AVKit.AVPlayerViewController::set_InfoViewActions(UIKit.UIAction[])' is missing an [NullAllowed] on parameter #0
32
!missing-protocol! AVContinuityDevicePickerViewControllerDelegate not bound
43
!missing-selector! +AVContinuityDevicePickerViewController::isSupported not bound

tests/xtro-sharpie/iOS-AVKit.todo

-5
This file was deleted.

tests/xtro-sharpie/macOS-AVKit.todo

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
!missing-enum! AVVideoFrameAnalysisType not bound
21
!missing-selector! AVPlayerView::setVideoFrameAnalysisTypes: not bound
32
!missing-selector! AVPlayerView::videoFrameAnalysisTypes not bound

tests/xtro-sharpie/tvOS-AVKit.todo

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
!missing-enum-value! AVKitError native value AVKitErrorRecordingFailed = -1200 not bound
21
!missing-null-allowed! 'System.Void AVKit.AVPlayerViewController::set_InfoViewActions(UIKit.UIAction[])' is missing an [NullAllowed] on parameter #0
32
!missing-protocol! AVContinuityDevicePickerViewControllerDelegate not bound
43
!missing-selector! +AVContinuityDevicePickerViewController::isSupported not bound

0 commit comments

Comments
 (0)