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] Add support for Xcode 15 #19022

Draft
wants to merge 2 commits into
base: net8.0-xcode15
Choose a base branch
from
Draft
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 @@ -34,6 +34,7 @@ public enum AVKitError : long {
ContentRatingUnknown = -1100,
ContentDisallowedByPasscode = -1101,
ContentDisallowedByProfile = -1102,
RecordingFailed = -1200,
}

[NoWatch]
Expand Down
57 changes: 57 additions & 0 deletions src/avkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,14 @@ interface AVPlayerViewControllerDelegate {
[iOS (15, 0), NoTV, NoMac, NoWatch, MacCatalyst (15, 0)]
[Export ("playerViewController:restoreUserInterfaceForFullScreenExitWithCompletionHandler:")]
void RestoreUserInterfaceForFullScreenExit (AVPlayerViewController playerViewController, Action<bool> completionHandler);

[NoWatch, NoTV, NoMacCatalyst, iOS (17, 0)]
[Export ("videoFrameAnalysisTypes", ArgumentSemantic.Assign)]
AVVideoFrameAnalysisType VideoFrameAnalysisTypes { get; set; }

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

[NoWatch, NoTV, NoMac, iOS (13, 0)]
Expand Down Expand Up @@ -1077,6 +1085,18 @@ public enum AVPlayerViewTrimResult : long {
CancelButton,
}

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Flags]
[Native]
public enum AVVideoFrameAnalysisType : ulong {
None = 0,
Default = 1 << 0,
Text = 1 << 1,
Subject = 1 << 2,
VisualSearch = 1 << 3,
MachineReadableCode = 1 << 4,
}

[TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
Expand All @@ -1097,4 +1117,41 @@ interface AVPlaybackSpeed {
[Export ("localizedNumericName")]
string LocalizedNumericName { get; }
}


[TV (17, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst]
#if NET
[Protocol, Model]
#else
[Protocol, Model (AutoGeneratedName = true)]
#endif
[BaseType (typeof (NSObject))]
interface AVContinuityDevicePickerViewControllerDelegate {
[Export ("continuityDevicePickerWillBeginPresenting:")]
void ContinuityDevicePickerWillBeginPresenting (AVContinuityDevicePickerViewController pickerViewController);

[Export ("continuityDevicePicker:didConnectDevice:")]
void ContinuityDevicePicker (AVContinuityDevicePickerViewController pickerViewController, AVContinuityDevice device);

[Export ("continuityDevicePickerDidCancel:")]
void ContinuityDevicePickerDidCancel (AVContinuityDevicePickerViewController pickerViewController);

[Export ("continuityDevicePickerDidEndPresenting:")]
void ContinuityDevicePickerDidEndPresenting (AVContinuityDevicePickerViewController pickerViewController);
}

[TV (17, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst]
[BaseType (typeof (UIViewController))]
interface AVContinuityDevicePickerViewController {
[Static]
[Export ("supported")]
bool Supported { [Bind ("isSupported")] get; }

[Wrap ("WeakDelegate")]
[NullAllowed]
AVContinuityDevicePickerViewControllerDelegate Delegate { get; set; }

[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
NSObject WeakDelegate { get; set; }
}
}
16 changes: 0 additions & 16 deletions tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVKit.todo

This file was deleted.

5 changes: 0 additions & 5 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-AVKit.todo

This file was deleted.

3 changes: 0 additions & 3 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-AVKit.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.todo

This file was deleted.

5 changes: 0 additions & 5 deletions tests/xtro-sharpie/iOS-AVKit.todo

This file was deleted.

3 changes: 0 additions & 3 deletions tests/xtro-sharpie/macOS-AVKit.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/tvOS-AVKit.todo

This file was deleted.

Loading