Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVKit] Implement Xcode 15 + Xcode 16.0 beta 1, beta 2 and beta 3 changes. #20849

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/AVKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public enum AVKitError : long {
ContentRatingUnknown = -1100,
ContentDisallowedByPasscode = -1101,
ContentDisallowedByProfile = -1102,
RecordingFailed = -1200,
}

[NoWatch]
Expand Down
20 changes: 20 additions & 0 deletions src/avkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@
#endif

namespace AVKit {
[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Native]
enum AVVideoFrameAnalysisType : ulong {
AVVideoFrameAnalysisTypeNone = 0,
AVVideoFrameAnalysisTypeDefault = 1 << 0,
AVVideoFrameAnalysisTypeText = 1 << 1,
AVVideoFrameAnalysisTypeSubject = 1 << 2,
AVVideoFrameAnalysisTypeVisualSearch = 1 << 3,
[NoMac, NoMacCatalyst]
AVVideoFrameAnalysisTypeMachineReadableCode = 1 << 4,
}

/// <summary>Provides video playback in a floating, resizable window on larger devices.</summary>
///
/// <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>
Expand Down Expand Up @@ -365,6 +377,14 @@ interface AVPlayerViewController {
[iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, TV (16, 0)]
[Export ("selectSpeed:")]
void SelectSpeed (AVPlaybackSpeed speed);

[iOS (17, 0), MacCatalyst (18, 0), NoTV, NoWatch, NoMac]
[Export ("videoFrameAnalysisTypes")]
AVVideoFrameAnalysisType VideoFrameAnalysisTypes { get; set; }

[iOS (17, 0), MacCatalyst (18, 0), NoTV, NoWatch, NoMac]
[Export ("toggleLookupAction")]
UIAction ToggleLookupAction { get; }
}

/// <summary>Interface representing the required methods (if any) of the protocol <see cref="T:AVKit.AVPlayerViewControllerDelegate" />.</summary>
Expand Down
10 changes: 10 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5571,6 +5571,7 @@ F:AVKit.AVKitError.ContentDisallowedByProfile
F:AVKit.AVKitError.ContentRatingUnknown
F:AVKit.AVKitError.None
F:AVKit.AVKitError.PictureInPictureStartFailed
F:AVKit.AVKitError.RecordingFailed
F:AVKit.AVKitError.Unknown
F:AVKit.AVPlayerViewControlsStyle.Default
F:AVKit.AVPlayerViewControlsStyle.Floating
Expand All @@ -5586,6 +5587,12 @@ F:AVKit.AVRoutePickerViewButtonState.NormalHighlighted
F:AVKit.AVRoutePickerViewButtonStyle.Custom
F:AVKit.AVRoutePickerViewButtonStyle.Plain
F:AVKit.AVRoutePickerViewButtonStyle.System
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeDefault
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeMachineReadableCode
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeNone
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeSubject
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeText
F:AVKit.AVVideoFrameAnalysisType.AVVideoFrameAnalysisTypeVisualSearch
F:AVRouting.AVCustomRoutingEventReason.Activate
F:AVRouting.AVCustomRoutingEventReason.Deactivate
F:AVRouting.AVCustomRoutingEventReason.Reactivate
Expand Down Expand Up @@ -57781,11 +57788,13 @@ P:AVKit.AVPlayerViewController.SkipBackwardEnabled
P:AVKit.AVPlayerViewController.SkipForwardEnabled
P:AVKit.AVPlayerViewController.SkippingBehavior
P:AVKit.AVPlayerViewController.Speeds
P:AVKit.AVPlayerViewController.ToggleLookupAction
P:AVKit.AVPlayerViewController.TransportBarCustomMenuItems
P:AVKit.AVPlayerViewController.TransportBarIncludesTitleView
P:AVKit.AVPlayerViewController.UnobscuredContentGuide
P:AVKit.AVPlayerViewController.UpdatesNowPlayingInfoCenter
P:AVKit.AVPlayerViewController.VideoBounds
P:AVKit.AVPlayerViewController.VideoFrameAnalysisTypes
P:AVKit.AVPlayerViewController.VideoGravity
P:AVKit.AVPlayerViewController.WeakDelegate
P:AVKit.AVPlayerViewController.WeakVideoGravity
Expand Down Expand Up @@ -77843,6 +77852,7 @@ T:AVKit.AVPlayerViewTrimResult
T:AVKit.AVRoutePickerViewButtonState
T:AVKit.AVRoutePickerViewButtonStyle
T:AVKit.AVRoutePickerViewDelegate
T:AVKit.AVVideoFrameAnalysisType
T:AVKit.IAVCaptureViewDelegate
T:AVKit.IAVCustomRoutingControllerDelegate
T:AVKit.IAVPictureInPictureSampleBufferPlaybackDelegate
Expand Down
5 changes: 0 additions & 5 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-AVKit.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/api-annotations-dotnet/macOS-AVKit.todo
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
!missing-enum! AVVideoFrameAnalysisType not bound
!missing-selector! AVPlayerView::setVideoFrameAnalysisTypes: not bound
!missing-selector! AVPlayerView::videoFrameAnalysisTypes not bound
1 change: 0 additions & 1 deletion tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.todo
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
!missing-enum-value! AVKitError native value AVKitErrorRecordingFailed = -1200 not bound
!missing-null-allowed! 'System.Void AVKit.AVPlayerViewController::set_InfoViewActions(UIKit.UIAction[])' is missing an [NullAllowed] on parameter #0
!missing-protocol! AVContinuityDevicePickerViewControllerDelegate not bound
!missing-selector! +AVContinuityDevicePickerViewController::isSupported not bound
Expand Down
5 changes: 0 additions & 5 deletions tests/xtro-sharpie/iOS-AVKit.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/macOS-AVKit.todo
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
!missing-enum! AVVideoFrameAnalysisType not bound
!missing-selector! AVPlayerView::setVideoFrameAnalysisTypes: not bound
!missing-selector! AVPlayerView::videoFrameAnalysisTypes not bound
1 change: 0 additions & 1 deletion tests/xtro-sharpie/tvOS-AVKit.todo
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
!missing-enum-value! AVKitError native value AVKitErrorRecordingFailed = -1200 not bound
!missing-null-allowed! 'System.Void AVKit.AVPlayerViewController::set_InfoViewActions(UIKit.UIAction[])' is missing an [NullAllowed] on parameter #0
!missing-protocol! AVContinuityDevicePickerViewControllerDelegate not bound
!missing-selector! +AVContinuityDevicePickerViewController::isSupported not bound
Expand Down