diff --git a/src/corelocation.cs b/src/corelocation.cs index 002377a8b599..b241c36be3e5 100644 --- a/src/corelocation.cs +++ b/src/corelocation.cs @@ -1250,6 +1250,10 @@ interface CLPlacemark : NSSecureCoding, NSCopying { /// This value can be . /// /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MapKit' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MapKit' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MapKit' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MapKit' instead.")] [NoTV] [MacCatalyst (13, 1)] [NullAllowed, Export ("postalAddress")] @@ -1501,6 +1505,10 @@ partial interface CLBeacon : NSCopying, NSSecureCoding { delegate void CLGeocodeCompletionHandler ([NullAllowed] CLPlacemark [] placemarks, [NullAllowed] NSError error); /// + [Deprecated (PlatformName.iOS, 26, 0, "Use MapKit instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use MapKit instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use MapKit instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use MapKit instead.")] [BaseType (typeof (NSObject))] interface CLGeocoder { /// Whether a geocoding request is currently being processed. @@ -1515,6 +1523,10 @@ interface CLGeocoder { /// Requests a longitude/latitude to a human address. /// /// + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] [Export ("reverseGeocodeLocation:completionHandler:")] [Async (XmlDocs = """ To be added. @@ -1534,6 +1546,10 @@ interface CLGeocoder { /// To be added. /// To be added. /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] [MacCatalyst (13, 1)] [Export ("reverseGeocodeLocation:preferredLocale:completionHandler:")] [Async (XmlDocs = """ @@ -1550,10 +1566,10 @@ interface CLGeocoder { /// Developers should not use this deprecated method. Developers should use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead. /// /// - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")] - [Deprecated (PlatformName.MacCatalyst, 13, 1, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")] + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")] [Export ("geocodeAddressDictionary:completionHandler:")] [Async (XmlDocs = """ Addressbook dictionary to submit @@ -1570,6 +1586,10 @@ interface CLGeocoder { /// Request a latitude/longitude location from a human readable address. /// /// + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")] [Export ("geocodeAddressString:completionHandler:")] [Async (XmlDocs = """ To be added. @@ -1600,6 +1620,10 @@ interface CLGeocoder { /// Method to invoke when the request completes. /// Request a latitude/longitude location from a human readable address and region. /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")] [Export ("geocodeAddressString:inRegion:completionHandler:")] [Async (XmlDocs = """ To be added. @@ -1622,6 +1646,10 @@ interface CLGeocoder { /// To be added. /// To be added. /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")] [MacCatalyst (13, 1)] [Async (XmlDocs = """ To be added. @@ -1636,6 +1664,10 @@ interface CLGeocoder { /// Cancels the geocoding attempt. /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")] [Export ("cancelGeocode")] void CancelGeocode (); @@ -1643,6 +1675,10 @@ interface CLGeocoder { /// To be added. /// To be added. /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] [NoTV] [MacCatalyst (13, 1)] [Export ("geocodePostalAddress:completionHandler:")] @@ -1667,6 +1703,10 @@ interface CLGeocoder { /// To be added. /// To be added. /// To be added. + [Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")] [NoTV] [MacCatalyst (13, 1)] [Export ("geocodePostalAddress:preferredLocale:completionHandler:")] @@ -2041,7 +2081,7 @@ interface CLBackgroundActivitySessionDiagnostic { } [Native] - [TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)] + [TV (18, 0), Mac (26, 0), iOS (18, 0), MacCatalyst (18, 0)] public enum CLServiceSessionAuthorizationRequirement : long { None = 0, WhenInUse = 1, diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreLocation.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreLocation.todo deleted file mode 100644 index 63963c8e21e3..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreLocation.todo +++ /dev/null @@ -1,8 +0,0 @@ -!deprecated-attribute-missing! CLGeocoder missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::cancelGeocode missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:inRegion:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodePostalAddress:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodePostalAddress:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:preferredLocale:completionHandler: missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.todo deleted file mode 100644 index 63963c8e21e3..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.todo +++ /dev/null @@ -1,8 +0,0 @@ -!deprecated-attribute-missing! CLGeocoder missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::cancelGeocode missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:inRegion:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodePostalAddress:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodePostalAddress:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:preferredLocale:completionHandler: missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreLocation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreLocation.todo deleted file mode 100644 index 6e3dc0c27935..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreLocation.todo +++ /dev/null @@ -1,9 +0,0 @@ -!missing-enum! CLServiceSessionAuthorizationRequirement not bound -!deprecated-attribute-missing! CLGeocoder missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::cancelGeocode missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:inRegion:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodePostalAddress:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodePostalAddress:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:preferredLocale:completionHandler: missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreLocation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreLocation.todo deleted file mode 100644 index 4144cd707a74..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreLocation.todo +++ /dev/null @@ -1,6 +0,0 @@ -!deprecated-attribute-missing! CLGeocoder missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::cancelGeocode missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::geocodeAddressString:inRegion:preferredLocale:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:completionHandler: missing a [Deprecated] attribute -!deprecated-attribute-missing! CLGeocoder::reverseGeocodeLocation:preferredLocale:completionHandler: missing a [Deprecated] attribute