Skip to content

Commit

Permalink
[AVKit] Implement Xcode 15 + Xcode 16.0 beta 1, beta 2 and beta 3 cha…
Browse files Browse the repository at this point in the history
…nges. (#20849)

Note: there were no changes in beta 2 or beta 3.
  • Loading branch information
rolfbjarne authored Jul 12, 2024
1 parent 451d2dd commit 20a18e3
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 14 deletions.
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 @@ -57782,11 +57789,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 @@ -77842,6 +77851,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

3 comments on commit 20a18e3

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 [CI Build] Build failed 🔥

Build failed for the job 'Detect API changes'

Pipeline on Agent
Hash: 20a18e37c3afc4ca7752f010b5ccb29d17abfb17 [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 [CI Build] Build failed 🔥

Build failed for the job 'Build packages'

Pipeline on Agent
Hash: 20a18e37c3afc4ca7752f010b5ccb29d17abfb17 [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 [CI Build] Build failed 🔥

Build failed for the job 'Build macOS tests'

Pipeline on Agent
Hash: 20a18e37c3afc4ca7752f010b5ccb29d17abfb17 [CI build]

Please sign in to comment.