diff --git a/src/foundation.cs b/src/foundation.cs index d40092bced4e..846edcf23a7c 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -1829,7 +1829,7 @@ interface NSByteCountFormatter { [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Static] [Export ("stringFromMeasurement:countStyle:")] - string StringFromMeasurement (NSUnitInformationStorage measurement, NSByteCountFormatterCountStyle countStyle); + string Create (NSUnitInformationStorage measurement, NSByteCountFormatterCountStyle countStyle); [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("stringFromMeasurement:")] @@ -7465,6 +7465,10 @@ partial interface NSUrlSessionTask : NSCopying, NSProgressReporting [NullAllowed, Export ("delegate", ArgumentSemantic.Retain)] NSObject WeakDelegate { get; set; } + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Wrap ("WeakDelegate")] + [NullAllowed] + INSUrlSessionTaskDelegate Delegate { get; set; } } [Static] @@ -7718,6 +7722,8 @@ partial interface NSUrlSessionDelegate { void DidFinishEventsForBackgroundSession (NSUrlSession session); } + public interface INSUrlSessionTaskDelegate {} + [iOS (7,0)] [Mac (10, 9)] [Model]