From d5c689ee530a9f811063d12e500ed4e3410f73f3 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Wed, 13 Sep 2017 23:56:52 -0400 Subject: [PATCH] [avfoundation] Add missing protocol members and deprecations !missing-protocol-member! AVCapturePhotoCaptureDelegate::captureOutput:didFinishProcessingPhoto:error: not found and the selector removed from PR#2687 was actually replaced with this one !missing-protocol-member! AVAssetDownloadDelegate::URLSession:aggregateAssetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:forMediaSelection: not found --- src/avfoundation.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/avfoundation.cs b/src/avfoundation.cs index 84b3722e446c..83249423be7d 100644 --- a/src/avfoundation.cs +++ b/src/avfoundation.cs @@ -8987,12 +8987,18 @@ interface AVCapturePhotoCaptureDelegate [Export ("captureOutput:didCapturePhotoForResolvedSettings:")] void DidCapturePhoto (AVCapturePhotoOutput captureOutput, AVCaptureResolvedPhotoSettings resolvedSettings); + [Deprecated (PlatformName.iOS, 11,0, message: "Use the 'DidFinishProcessingPhoto' overload accepting a 'AVCapturePhoto' instead.")] [Export ("captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:")] void DidFinishProcessingPhoto (AVCapturePhotoOutput captureOutput, [NullAllowed] CMSampleBuffer photoSampleBuffer, [NullAllowed] CMSampleBuffer previewPhotoSampleBuffer, AVCaptureResolvedPhotoSettings resolvedSettings, [NullAllowed] AVCaptureBracketedStillImageSettings bracketSettings, [NullAllowed] NSError error); + [Deprecated (PlatformName.iOS, 11,0, message: "Use the 'DidFinishProcessingPhoto' overload accepting a 'AVCapturePhoto' instead.")] [Export ("captureOutput:didFinishProcessingRawPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:")] void DidFinishProcessingRawPhoto (AVCapturePhotoOutput captureOutput, [NullAllowed] CMSampleBuffer rawSampleBuffer, [NullAllowed] CMSampleBuffer previewPhotoSampleBuffer, AVCaptureResolvedPhotoSettings resolvedSettings, [NullAllowed] AVCaptureBracketedStillImageSettings bracketSettings, [NullAllowed] NSError error); + [iOS (11,0)] + [Export ("captureOutput:didFinishProcessingPhoto:error:")] + void DidFinishProcessingPhoto (AVCapturePhotoOutput output, AVCapturePhoto photo, [NullAllowed] NSError error); + [Export ("captureOutput:didFinishRecordingLivePhotoMovieForEventualFileAtURL:resolvedSettings:")] void DidFinishRecordingLivePhotoMovie (AVCapturePhotoOutput captureOutput, NSUrl outputFileUrl, AVCaptureResolvedPhotoSettings resolvedSettings); @@ -11526,6 +11532,7 @@ interface AVAssetDownloadUrlSession { interface IAVAssetDownloadDelegate {} [NoTV] + [NoMac] [NoWatch] [iOS (9,0)] [Protocol, Model] @@ -11541,13 +11548,17 @@ interface AVAssetDownloadDelegate : NSUrlSessionTaskDelegate { [Export ("URLSession:assetDownloadTask:didFinishDownloadingToURL:")] void DidFinishDownloadingToUrl (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, NSUrl location); - [NoWatch, NoMac, NoTV, iOS (11,0)] + [iOS (11,0)] [Export ("URLSession:aggregateAssetDownloadTask:willDownloadToURL:")] void WillDownloadToUrl (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, NSUrl location); - [NoWatch, NoMac, NoTV, iOS (11,0)] + [iOS (11,0)] [Export ("URLSession:aggregateAssetDownloadTask:didCompleteForMediaSelection:")] void DidCompleteForMediaSelection (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, AVMediaSelection mediaSelection); + + [iOS (11,0)] + [Export ("URLSession:aggregateAssetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:forMediaSelection:")] + void DidLoadTimeRange (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, CMTimeRange timeRange, NSValue[] loadedTimeRanges, CMTimeRange timeRangeExpectedToLoad, AVMediaSelection mediaSelection); } #endif