Skip to content

Commit 5e2a1dc

Browse files
authored
[CoreLocation] Update to Xcode 26 beta 1-5. (#23547)
For posterity: it seems Apple moved a lot of `CoreLocation` header code into a new framework, `_LocationEssentials`, which will hopefully not be too confusing next year, if they add new code to `_LocationEssentials` (which we should bind in `CoreLocation`).
1 parent b35a6b1 commit 5e2a1dc

File tree

5 files changed

+45
-36
lines changed

5 files changed

+45
-36
lines changed

src/corelocation.cs

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,10 @@ interface CLPlacemark : NSSecureCoding, NSCopying {
12501250
/// <para tool="nullallowed">This value can be <see langword="null" />.</para>
12511251
/// </value>
12521252
/// <remarks>To be added.</remarks>
1253+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MapKit' instead.")]
1254+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MapKit' instead.")]
1255+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MapKit' instead.")]
1256+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MapKit' instead.")]
12531257
[NoTV]
12541258
[MacCatalyst (13, 1)]
12551259
[NullAllowed, Export ("postalAddress")]
@@ -1501,6 +1505,10 @@ partial interface CLBeacon : NSCopying, NSSecureCoding {
15011505
delegate void CLGeocodeCompletionHandler ([NullAllowed] CLPlacemark [] placemarks, [NullAllowed] NSError error);
15021506

15031507
/// <include file="../docs/api/CoreLocation/CLGeocoder.xml" path="/Documentation/Docs[@DocId='T:CoreLocation.CLGeocoder']/*" />
1508+
[Deprecated (PlatformName.iOS, 26, 0, "Use MapKit instead.")]
1509+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use MapKit instead.")]
1510+
[Deprecated (PlatformName.TvOS, 26, 0, "Use MapKit instead.")]
1511+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use MapKit instead.")]
15041512
[BaseType (typeof (NSObject))]
15051513
interface CLGeocoder {
15061514
/// <summary>Whether a geocoding request is currently being processed.</summary>
@@ -1515,6 +1523,10 @@ interface CLGeocoder {
15151523
/// <summary>Requests a longitude/latitude to a human address.</summary>
15161524
/// <remarks>
15171525
/// </remarks>
1526+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1527+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1528+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1529+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
15181530
[Export ("reverseGeocodeLocation:completionHandler:")]
15191531
[Async (XmlDocs = """
15201532
<param name="location">To be added.</param>
@@ -1534,6 +1546,10 @@ interface CLGeocoder {
15341546
/// <param name="completionHandler">To be added.</param>
15351547
/// <summary>To be added.</summary>
15361548
/// <remarks>To be added.</remarks>
1549+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1550+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1551+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1552+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
15371553
[MacCatalyst (13, 1)]
15381554
[Export ("reverseGeocodeLocation:preferredLocale:completionHandler:")]
15391555
[Async (XmlDocs = """
@@ -1550,10 +1566,10 @@ interface CLGeocoder {
15501566
/// <summary>Developers should not use this deprecated method. Developers should use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.</summary>
15511567
/// <remarks>
15521568
/// </remarks>
1553-
[Deprecated (PlatformName.iOS, 11, 0, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
1554-
[Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
1555-
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
1556-
[Deprecated (PlatformName.MacCatalyst, 13, 1, message: "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
1569+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1570+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1571+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1572+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")]
15571573
[Export ("geocodeAddressDictionary:completionHandler:")]
15581574
[Async (XmlDocs = """
15591575
<param name="addressDictionary">Addressbook dictionary to submit</param>
@@ -1570,6 +1586,10 @@ interface CLGeocoder {
15701586
/// <summary>Request a latitude/longitude location from a human readable address.</summary>
15711587
/// <remarks>
15721588
/// </remarks>
1589+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1590+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1591+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1592+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")]
15731593
[Export ("geocodeAddressString:completionHandler:")]
15741594
[Async (XmlDocs = """
15751595
<param name="addressString">To be added.</param>
@@ -1600,6 +1620,10 @@ interface CLGeocoder {
16001620
/// <param name="completionHandler">Method to invoke when the request completes.</param>
16011621
/// <summary>Request a latitude/longitude location from a human readable address and region.</summary>
16021622
/// <remarks>To be added.</remarks>
1623+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1624+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1625+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1626+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")]
16031627
[Export ("geocodeAddressString:inRegion:completionHandler:")]
16041628
[Async (XmlDocs = """
16051629
<param name="addressString">To be added.</param>
@@ -1622,6 +1646,10 @@ interface CLGeocoder {
16221646
/// <param name="completionHandler">To be added.</param>
16231647
/// <summary>To be added.</summary>
16241648
/// <remarks>To be added.</remarks>
1649+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1650+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1651+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1652+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")]
16251653
[MacCatalyst (13, 1)]
16261654
[Async (XmlDocs = """
16271655
<param name="addressString">To be added.</param>
@@ -1636,13 +1664,21 @@ interface CLGeocoder {
16361664

16371665
/// <summary>Cancels the geocoding attempt.</summary>
16381666
/// <remarks>To be added.</remarks>
1667+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1668+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1669+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKGeocodingRequest' instead.")]
1670+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKGeocodingRequest' instead.")]
16391671
[Export ("cancelGeocode")]
16401672
void CancelGeocode ();
16411673

16421674
/// <param name="postalAddress">To be added.</param>
16431675
/// <param name="completionHandler">To be added.</param>
16441676
/// <summary>To be added.</summary>
16451677
/// <remarks>To be added.</remarks>
1678+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1679+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1680+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1681+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
16461682
[NoTV]
16471683
[MacCatalyst (13, 1)]
16481684
[Export ("geocodePostalAddress:completionHandler:")]
@@ -1667,6 +1703,10 @@ interface CLGeocoder {
16671703
/// <param name="completionHandler">To be added.</param>
16681704
/// <summary>To be added.</summary>
16691705
/// <remarks>To be added.</remarks>
1706+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1707+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1708+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
1709+
[Deprecated (PlatformName.MacOSX, 26, 0, "Use 'MKReverseGeocodingRequest' instead.")]
16701710
[NoTV]
16711711
[MacCatalyst (13, 1)]
16721712
[Export ("geocodePostalAddress:preferredLocale:completionHandler:")]
@@ -2041,7 +2081,7 @@ interface CLBackgroundActivitySessionDiagnostic {
20412081
}
20422082

20432083
[Native]
2044-
[TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)]
2084+
[TV (18, 0), Mac (26, 0), iOS (18, 0), MacCatalyst (18, 0)]
20452085
public enum CLServiceSessionAuthorizationRequirement : long {
20462086
None = 0,
20472087
WhenInUse = 1,

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreLocation.todo

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.todo

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreLocation.todo

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreLocation.todo

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)