diff --git a/src/corelocation.cs b/src/corelocation.cs index edaffb85ec..d8a87ff7e4 100644 --- a/src/corelocation.cs +++ b/src/corelocation.cs @@ -149,7 +149,7 @@ namespace CoreLocation { [Field ("kCLLocationAccuracyThreeKilometers")] double AccuracyThreeKilometers { get; } - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Field ("kCLLocationAccuracyReduced")] double AccuracyReduced { get; } @@ -221,7 +221,7 @@ namespace CoreLocation { [NoWatch][NoTV] [Availability (Deprecated = Platform.iOS_6_0)] - [Deprecated (PlatformName.MacOSX, 10, 16, message : "Set the purpose using the NSLocationUsageDescription key in the Info.plist instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message : "Set the purpose using the NSLocationUsageDescription key in the Info.plist instead.")] // Default property value is null but it cannot be set to that value // it crash when a null is provided [NullAllowed, Export ("purpose")] @@ -287,12 +287,12 @@ namespace CoreLocation { [Export ("stopMonitoringForRegion:")] void StopMonitoring (CLRegion region); - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("authorizationStatus")] CLAuthorizationStatus AuthorizationStatus { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use the instance property 'AuthorizationStatus' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 16, message: "Use the instance 'AuthorizationStatus' property instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use the instance 'AuthorizationStatus' property instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use the instance property AuthorizationStatus' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use instance property 'AuthorizationStatus' instead.")] [Export ("authorizationStatus")][Static] @@ -421,46 +421,19 @@ namespace CoreLocation { [Export ("requestLocation")] void RequestLocation (); - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("accuracyAuthorization")] CLAccuracyAuthorization AccuracyAuthorization { get; } - // Apple issue reported: https://github.com/xamarin/maccore/issues/2259 - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] - [Deprecated (PlatformName.WatchOS, 7, 0)] - [Deprecated (PlatformName.TvOS, 14, 0)] - [Deprecated (PlatformName.iOS, 14, 0)] - [Deprecated (PlatformName.MacOSX, 10, 16)] - [Export ("authorizedForPreciseLocation")] - bool AuthorizedForPreciseLocation { [Bind ("isAuthorizedForPreciseLocation")] get; } - [Async] - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:completion:")] void RequestTemporaryFullAccuracyAuthorization (string purposeKey, [NullAllowed] Action completion); - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:")] void RequestTemporaryFullAccuracyAuthorization (string purposeKey); - // Apple issue reported: https://github.com/xamarin/maccore/issues/2259 - [Async] - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] - [Deprecated (PlatformName.WatchOS, 7, 0)] - [Deprecated (PlatformName.TvOS, 14, 0)] - [Deprecated (PlatformName.iOS, 14, 0)] - [Deprecated (PlatformName.MacOSX, 10, 16)] - [Export ("requestTemporaryPreciseLocationAuthorizationWithPurposeKey:completion:")] - void RequestTemporaryPreciseLocationAuthorization (string purposeKey, [NullAllowed] Action completion); - - // Apple issue reported: https://github.com/xamarin/maccore/issues/2259 - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] - [Deprecated (PlatformName.WatchOS, 7, 0)] - [Deprecated (PlatformName.TvOS, 14, 0)] - [Deprecated (PlatformName.iOS, 14, 0)] - [Deprecated (PlatformName.MacOSX, 10, 16)] - [Export ("requestTemporaryPreciseLocationAuthorizationWithPurposeKey:")] - void RequestTemporaryPreciseLocationAuthorization (string purposeKey); } [BaseType (typeof (NSObject))] @@ -540,7 +513,7 @@ namespace CoreLocation { #endif [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'DidChangeAuthorization' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 16, message: "Use 'DidChangeAuthorization' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'DidChangeAuthorization' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'DidChangeAuthorization' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'DidChangeAuthorization' instead.")] [Export ("locationManager:didChangeAuthorizationStatus:"), EventArgs ("CLAuthorizationChanged")] @@ -567,7 +540,7 @@ namespace CoreLocation { [Export ("locationManager:didFinishDeferredUpdatesWithError:"), EventArgs ("NSError", true)] void DeferredUpdatesFinished (CLLocationManager manager, [NullAllowed] NSError error); - [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("locationManagerDidChangeAuthorization:")] void DidChangeAuthorization (CLLocationManager manager);