Skip to content
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
68 changes: 67 additions & 1 deletion src/avfoundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ interface AVVideo {
[Field ("AVVideoCleanApertureVerticalOffsetKey")]
NSString CleanApertureVerticalOffsetKey { get; }

[MacCatalyst (17, 0), NoTV, Mac (10, 13), iOS (17, 0)]
[MacCatalyst (17, 0), TV (26, 4), Mac (10, 13), iOS (17, 0)]
[Field ("AVVideoDecompressionPropertiesKey")]
NSString DecompressionPropertiesKey { get; }

Expand Down Expand Up @@ -15507,6 +15507,16 @@ interface AVCaptureDeviceInput {
[TV (26, 0), MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
[Export ("simulatedAperture")]
float SimulatedAperture { get; set; }

/// <summary>Gets a Boolean value that indicates whether the device supports audio zoom.</summary>
[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Export ("audioZoomSupported")]
bool AudioZoomSupported { [Bind ("isAudioZoomSupported")] get; }

/// <summary>Gets or sets a Boolean value that indicates whether audio zoom is enabled, causing the sound field to narrow or expand to match the field of view of the video device's zoom factor.</summary>
[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Export ("audioZoomEnabled")]
bool AudioZoomEnabled { [Bind ("isAudioZoomEnabled")] get; set; }
}

[NoiOS, NoTV, NoMacCatalyst]
Expand Down Expand Up @@ -19136,6 +19146,16 @@ enum AVPlayerRateDidChangeReason {
[Field ("AVPlayerRateDidChangeReasonAppBackgrounded")]
AppBackgrounded,

/// <summary>Indicates that the player automatically switched the playback rate to 1.0 when the playhead reached the live edge during live streaming.</summary>
[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Field ("AVPlayerRateDidChangeReasonPlayheadReachedLiveEdge")]
PlayheadReachedLiveEdge,

/// <summary>Indicates that the player automatically switched the playback rate to 1.0 when reverse playback reached the start of the seekable range.</summary>
[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Field ("AVPlayerRateDidChangeReasonReversePlaybackReachedStartOfSeekableRange")]
ReversePlaybackReachedStartOfSeekableRange,

}

[iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)]
Expand Down Expand Up @@ -19503,6 +19523,10 @@ interface AVPlayer
[Static]
[Export ("observationEnabled")]
bool ObservationEnabled { [Bind ("isObservationEnabled")] get; set; }

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Export ("allowsCaptureOfClearKeyVideo")]
bool AllowsCaptureOfClearKeyVideo { get; set; }
}

[MacCatalyst (13, 1)]
Expand Down Expand Up @@ -20132,6 +20156,10 @@ interface AVPlayerItem : NSCopying, AVMetricEventStreamPublisher {
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
[Export ("effectiveMediaPresentationSettingsForMediaSelectionGroup:")]
NSDictionary<AVMediaPresentationSelector, NSObject> GetEffectiveMediaPresentationSettings (AVMediaSelectionGroup mediaSelectionGroup);

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[NullAllowed, Export ("interstitialEventIdentifier")]
string InterstitialEventIdentifier { get; }
}

[TV (14, 5), iOS (14, 5)]
Expand Down Expand Up @@ -21039,6 +21067,14 @@ interface AVPlayerLayer {
[return: NullAllowed]
[return: Release]
CVPixelBuffer CopyDisplayedPixelBuffer ();

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Export ("setCaptionPreviewProfileID:position:text:")]
void SetCaptionPreviewProfileId (string profileId, CGPoint position, [NullAllowed] string text);

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Export ("stopShowingCaptionPreview")]
void StopShowingCaptionPreview ();
}

[MacCatalyst (13, 1)]
Expand Down Expand Up @@ -21284,6 +21320,10 @@ NSDictionary UserDefinedAttributes {
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
[NullAllowed, Export ("skipControlLocalizedLabelBundleKey")]
string SkipControlLocalizedLabelBundleKey { get; set; }

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[NullAllowed, Export ("scheduleIdentifier")]
string ScheduleIdentifier { get; }
}

[DisableDefaultCtor]
Expand Down Expand Up @@ -21401,6 +21441,23 @@ interface AVPlayerInterstitialEventMonitor {
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
[NullAllowed, Export ("currentEventSkipControlLabel")]
string CurrentEventSkipControlLabel { get; }

[Notification]
[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Field ("AVPlayerInterstitialEventMonitorScheduleRequestCompletedNotification")]
NSString ScheduleRequestCompletedNotification { get; }

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Field ("AVPlayerInterstitialEventMonitorScheduleRequestIdentifierKey")]
NSString ScheduleRequestIdentifierKey { get; }

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Field ("AVPlayerInterstitialEventMonitorScheduleRequestResponseKey")]
NSString ScheduleRequestResponseKey { get; }

[MacCatalyst (26, 4), TV (26, 4), Mac (26, 4), iOS (26, 4)]
[Field ("AVPlayerInterstitialEventMonitorScheduleRequestErrorKey")]
NSString ScheduleRequestErrorKey { get; }
}

[DisableDefaultCtor]
Expand Down Expand Up @@ -24221,6 +24278,10 @@ interface AVAssetDownloadConfiguration {
[iOS (18, 4), TV (18, 4), MacCatalyst (18, 4), Mac (15, 4)]
[Export ("setInterstitialMediaSelectionCriteria:forMediaCharacteristic:")]
void SetInterstitialMediaSelectionCriteria (AVPlayerMediaSelectionCriteria [] criteria, [BindAs (typeof (AVMediaCharacteristics))] NSString mediaCharacteristic);

[NoTV, MacCatalyst (18, 0), Mac (15, 0), iOS (18, 0)]
[Export ("downloadsInterstitialAssets")]
bool DownloadsInterstitialAssets { get; set; }
}

[TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)]
Expand Down Expand Up @@ -24931,6 +24992,11 @@ interface AVCaptionRenderer {

[Export ("renderInContext:forTime:")]
void Render (CGContext ctx, CMTime time);

[MacCatalyst (26, 4), Mac (26, 4), iOS (26, 4)]
[Static]
[Export ("captionPreviewForProfileID:extendedLanguageTag:renderSize:")]
NSAttributedString GetCaptionPreview (string profileId, [NullAllowed] string extendedLanguageTag, CGSize renderSize);
}

[NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (18, 0)]
Expand Down

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
!extra-enum-value! Managed value 1684369017 for AVAudioSessionRecordPermission.Denied is available for the current platform while the value in the native header is not
!extra-enum-value! Managed value 1735552628 for AVAudioSessionRecordPermission.Granted is available for the current platform while the value in the native header is not
!extra-enum-value! Managed value 1970168948 for AVAudioSessionRecordPermission.Undetermined is available for the current platform while the value in the native header is not

## Introspection says otherwise
!missing-selector! +AVCaptionRenderer::captionPreviewForProfileID:extendedLanguageTag:renderSize: not bound
!missing-type! AVCaptionRenderer not bound
18 changes: 0 additions & 18 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.todo

This file was deleted.

Loading