Skip to content

Commit ec9db0e

Browse files
authored
[AVFoundation/Intents/QuickLook] Don't add introduced attributes for a platform when the type itself isn't available on that platform. (#17293)
1 parent 3e83810 commit ec9db0e

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/avfoundation.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7441,17 +7441,17 @@ interface AVMovie_AVMovieTrackInspection {
74417441
AVMovieTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic);
74427442

74437443
[Async]
7444-
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
7444+
[Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
74457445
[Export ("loadTrackWithTrackID:completionHandler:")]
74467446
void LoadTrack (int trackId, Action<AVMutableCompositionTrack, NSError> completionHandler);
74477447

74487448
[Async]
7449-
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
7449+
[Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
74507450
[Export ("loadTracksWithMediaType:completionHandler:")]
74517451
void LoadTracksWithMediaType (string mediaType, Action<NSArray<AVMutableCompositionTrack>, NSError> completionHandler);
74527452

74537453
[Async]
7454-
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
7454+
[Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
74557455
[Export ("loadTracksWithMediaCharacteristic:completionHandler:")]
74567456
void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action<NSArray<AVMutableCompositionTrack>, NSError> completionHandler);
74577457
}
@@ -7516,17 +7516,17 @@ interface AVMutableMovie {
75167516
CMTime InterleavingPeriod { get; set; }
75177517

75187518
[Async]
7519-
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
7519+
[Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
75207520
[Export ("loadTrackWithTrackID:completionHandler:")]
75217521
void LoadTrack (int trackId, Action<AVMovieTrack, NSError> completionHandler);
75227522

75237523
[Async]
7524-
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
7524+
[Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
75257525
[Export ("loadTracksWithMediaType:completionHandler:")]
75267526
void LoadTracksWithMediaType (string mediaType, Action<NSArray<AVMovieTrack>, NSError> completionHandler);
75277527

75287528
[Async]
7529-
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
7529+
[Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
75307530
[Export ("loadTracksWithMediaCharacteristic:completionHandler:")]
75317531
void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action<NSArray<AVMovieTrack>, NSError> completionHandler);
75327532
}

src/intents.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7324,7 +7324,10 @@ interface INStartAudioCallIntentHandling {
73247324
#endif
73257325
(INStartAudioCallIntent intent, Action<INStartAudioCallIntentResponse> completion);
73267326

7327-
[Watch (4, 0), Mac (10, 13), iOS (11, 0)]
7327+
#if !NET
7328+
[Mac (10, 13)]
7329+
#endif
7330+
[Watch (4, 0), iOS (11, 0)]
73287331
[Export ("resolveDestinationTypeForStartAudioCall:withCompletion:")]
73297332
void ResolveDestinationType (INStartAudioCallIntent intent, Action<INCallDestinationTypeResolutionResult> completion);
73307333

src/quicklook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ interface QLPreviewingController {
277277
[Export ("preparePreviewOfFileAtURL:completionHandler:")]
278278
void PreparePreviewOfFile (NSUrl url, Action<NSError> handler);
279279

280-
[iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)]
280+
[iOS (15, 0), MacCatalyst (15, 0)]
281281
[Export ("providePreviewForFileRequest:completionHandler:")]
282282
void ProvidePreview (QLFilePreviewRequest request, Action<QLPreviewReply, NSError> handler);
283283
}

0 commit comments

Comments
 (0)