Skip to content

Commit 9f3b144

Browse files
authored
[CoreLocation] Implement Xcode 16.0 beta 1, beta 2 and beta 3 changes. (#20864)
Note: there were no changes in beta 2 or beta 3.
1 parent 317c07b commit 9f3b144

11 files changed

+234
-227
lines changed

src/corelocation.cs

+177-1
Original file line numberDiff line numberDiff line change
@@ -1157,11 +1157,52 @@ interface CLLocationSourceInformation : NSCopying, NSSecureCoding {
11571157
[Watch (10, 0), TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0), TV (17, 0)]
11581158
[BaseType (typeof (NSObject))]
11591159
interface CLUpdate {
1160+
[Deprecated (PlatformName.iOS, 18, 0, message: "Use 'Stationary' instead.")]
1161+
[Deprecated (PlatformName.MacCatalyst, 18, 0, message: "Use 'Stationary' instead.")]
1162+
[Deprecated (PlatformName.TvOS, 18, 0, message: "Use 'Stationary' instead.")]
1163+
[Deprecated (PlatformName.WatchOS, 11, 0, message: "Use 'Stationary' instead.")]
1164+
[Deprecated (PlatformName.MacOSX, 15, 0, message: "Use 'Stationary' instead.")]
11601165
[Export ("isStationary")]
11611166
bool IsStationary { get; }
11621167

11631168
[NullAllowed, Export ("location")]
11641169
CLLocation Location { get; }
1170+
1171+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1172+
[Export ("authorizationDenied")]
1173+
bool AuthorizationDenied { get; }
1174+
1175+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1176+
[Export ("authorizationDeniedGlobally")]
1177+
bool AuthorizationDeniedGlobally { get; }
1178+
1179+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1180+
[Export ("authorizationRestricted")]
1181+
bool AuthorizationRestricted { get; }
1182+
1183+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1184+
[Export ("stationary")]
1185+
bool Stationary { get; }
1186+
1187+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1188+
[Export ("insufficientlyInUse")]
1189+
bool InsufficientlyInUse { get; }
1190+
1191+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1192+
[Export ("locationUnavailable")]
1193+
bool LocationUnavailable { get; }
1194+
1195+
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1196+
[Export ("accuracyLimited")]
1197+
bool AccuracyLimited { get; }
1198+
1199+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1200+
[Export ("serviceSessionRequired")]
1201+
bool ServiceSessionRequired { get; }
1202+
1203+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1204+
[Export ("authorizationRequestInProgress")]
1205+
bool AuthorizationRequestInProgress { get; }
11651206
}
11661207

11671208
[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
@@ -1190,6 +1231,46 @@ interface CLMonitoringEvent : NSSecureCoding {
11901231

11911232
[Export ("date", ArgumentSemantic.Strong)]
11921233
NSDate Date { get; }
1234+
1235+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1236+
[Export ("authorizationDenied")]
1237+
bool AuthorizationDenied { get; }
1238+
1239+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1240+
[Export ("authorizationDeniedGlobally")]
1241+
bool AuthorizationDeniedGlobally { get; }
1242+
1243+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1244+
[Export ("authorizationRestricted")]
1245+
bool AuthorizationRestricted { get; }
1246+
1247+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1248+
[Export ("insufficientlyInUse")]
1249+
bool InsufficientlyInUse { get; }
1250+
1251+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1252+
[Export ("accuracyLimited")]
1253+
bool AccuracyLimited { get; }
1254+
1255+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1256+
[Export ("conditionUnsupported")]
1257+
bool ConditionUnsupported { get; }
1258+
1259+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1260+
[Export ("conditionLimitExceeded")]
1261+
bool ConditionLimitExceeded { get; }
1262+
1263+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1264+
[Export ("persistenceUnavailable")]
1265+
bool PersistenceUnavailable { get; }
1266+
1267+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1268+
[Export ("serviceSessionRequired")]
1269+
bool ServiceSessionRequired { get; }
1270+
1271+
[NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
1272+
[Export ("authorizationRequestInProgress")]
1273+
bool AuthorizationRequestInProgress { get; }
11931274
}
11941275

11951276
[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
@@ -1304,7 +1385,9 @@ interface CLBeaconIdentityCondition : NSCopying, NSSecureCoding {
13041385
NativeHandle Constructor (NSUuid uuid, ushort major, ushort minor);
13051386
}
13061387

1307-
[Watch (10, 0), NoTV, NoMac, iOS (17, 0), MacCatalyst (17, 0)]
1388+
delegate void CLBackgroundActivitySessionCreateHandler (CLBackgroundActivitySessionDiagnostic diagnostic);
1389+
1390+
[Watch (10, 0), TV (18, 0), NoMac, iOS (17, 0), MacCatalyst (17, 0)]
13081391
[BaseType (typeof (NSObject))]
13091392
[DisableDefaultCtor]
13101393
interface CLBackgroundActivitySession {
@@ -1316,5 +1399,98 @@ interface CLBackgroundActivitySession {
13161399
[Static]
13171400
[Export ("backgroundActivitySession")]
13181401
CLBackgroundActivitySession Create ();
1402+
1403+
[Watch (11, 0), TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)]
1404+
[Static]
1405+
[Export ("backgroundActivitySessionWithQueue:handler:")]
1406+
CLBackgroundActivitySession Create (DispatchQueue queue, CLBackgroundActivitySessionCreateHandler handler);
1407+
}
1408+
1409+
[Watch (11, 0), TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)]
1410+
[BaseType (typeof (NSObject))]
1411+
interface CLBackgroundActivitySessionDiagnostic {
1412+
[Export ("authorizationDenied")]
1413+
bool AuthorizationDenied { get; }
1414+
1415+
[Export ("authorizationDeniedGlobally")]
1416+
bool AuthorizationDeniedGlobally { get; }
1417+
1418+
[Export ("authorizationRestricted")]
1419+
bool AuthorizationRestricted { get; }
1420+
1421+
[Export ("insufficientlyInUse")]
1422+
bool InsufficientlyInUse { get; }
1423+
1424+
[NoWatch]
1425+
[Export ("serviceSessionRequired")]
1426+
bool ServiceSessionRequired { get; }
1427+
1428+
[NoWatch]
1429+
[Export ("authorizationRequestInProgress")]
1430+
bool AuthorizationRequestInProgress { get; }
1431+
}
1432+
1433+
[Native]
1434+
[Watch (11, 0), TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)]
1435+
public enum CLServiceSessionAuthorizationRequirement : long {
1436+
None = 0,
1437+
WhenInUse = 1,
1438+
[NoTV, NoMac]
1439+
Always = 2,
1440+
}
1441+
1442+
[Watch (11, 0), TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)]
1443+
[BaseType (typeof (NSObject))]
1444+
[DisableDefaultCtor]
1445+
interface CLServiceSessionDiagnostic {
1446+
[Export ("authorizationDenied")]
1447+
bool AuthorizationDenied { get; }
1448+
1449+
[Export ("authorizationDeniedGlobally")]
1450+
bool AuthorizationDeniedGlobally { get; }
1451+
1452+
[Export ("authorizationRestricted")]
1453+
bool AuthorizationRestricted { get; }
1454+
1455+
[Export ("insufficientlyInUse")]
1456+
bool InsufficientlyInUse { get; }
1457+
1458+
[Export ("serviceSessionRequired")]
1459+
bool ServiceSessionRequired { get; }
1460+
1461+
[Export ("fullAccuracyDenied")]
1462+
bool FullAccuracyDenied { get; }
1463+
1464+
[Export ("alwaysAuthorizationDenied")]
1465+
bool AlwaysAuthorizationDenied { get; }
1466+
1467+
[Export ("authorizationRequestInProgress")]
1468+
bool AuthorizationRequestInProgress { get; }
1469+
}
1470+
1471+
delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
1472+
1473+
[Watch (11, 0), TV (18, 0), NoMac, iOS (18, 0), MacCatalyst (18, 0)]
1474+
[BaseType (typeof (NSObject))]
1475+
[DisableDefaultCtor]
1476+
interface CLServiceSession {
1477+
[Static]
1478+
[Export ("sessionRequiringAuthorization:")]
1479+
CLServiceSession CreateSession (CLServiceSessionAuthorizationRequirement authorizationRequirement);
1480+
1481+
[Static]
1482+
[Export ("sessionRequiringAuthorization:queue:handler:")]
1483+
CLServiceSession CreateSession (CLServiceSessionAuthorizationRequirement authorizationRequirement, DispatchQueue queue, CLServiceSessionCreateHandler handler);
1484+
1485+
[Static]
1486+
[Export ("sessionRequiringAuthorization:fullAccuracyPurposeKey:")]
1487+
CLServiceSession CreateSession (CLServiceSessionAuthorizationRequirement authorizationRequirement, string fullAccuracyPurposeKey);
1488+
1489+
[Static]
1490+
[Export ("sessionRequiringAuthorization:fullAccuracyPurposeKey:queue:handler:")]
1491+
CLServiceSession CreateSession (CLServiceSessionAuthorizationRequirement authorizationRequirement, string fullAccuracyPurposeKey, DispatchQueue queue, CLServiceSessionCreateHandler handler);
1492+
1493+
[Export ("invalidate")]
1494+
void Invalidate ();
13191495
}
13201496
}

tests/cecil-tests/Documentation.KnownFailures.txt

+48
Original file line numberDiff line numberDiff line change
@@ -7146,6 +7146,9 @@ F:CoreLocation.CLProximity.Unknown
71467146
F:CoreLocation.CLRegionState.Inside
71477147
F:CoreLocation.CLRegionState.Outside
71487148
F:CoreLocation.CLRegionState.Unknown
7149+
F:CoreLocation.CLServiceSessionAuthorizationRequirement.Always
7150+
F:CoreLocation.CLServiceSessionAuthorizationRequirement.None
7151+
F:CoreLocation.CLServiceSessionAuthorizationRequirement.WhenInUse
71497152
F:CoreLocationUI.CLLocationButtonIcon.ArrowFilled
71507153
F:CoreLocationUI.CLLocationButtonIcon.ArrowOutline
71517154
F:CoreLocationUI.CLLocationButtonIcon.None
@@ -31749,6 +31752,7 @@ M:CoreImage.ICIFilterProtocol.GetCustomAttributes``1
3174931752
M:CoreImage.ICIImageProvider.ProvideImageData(System.IntPtr,System.UIntPtr,System.UIntPtr,System.UIntPtr,System.UIntPtr,System.UIntPtr,Foundation.NSObject)
3175031753
M:CoreLocation.CLAuthorizationChangedEventArgs.#ctor(CoreLocation.CLAuthorizationStatus)
3175131754
M:CoreLocation.CLBackgroundActivitySession.Create
31755+
M:CoreLocation.CLBackgroundActivitySession.Create(CoreFoundation.DispatchQueue,CoreLocation.CLBackgroundActivitySessionCreateHandler)
3175231756
M:CoreLocation.CLBackgroundActivitySession.Invalidate
3175331757
M:CoreLocation.CLBeacon.Copy(Foundation.NSZone)
3175431758
M:CoreLocation.CLBeacon.EncodeTo(Foundation.NSCoder)
@@ -31950,6 +31954,11 @@ M:CoreLocation.CLRegionBeaconsRangedEventArgs.#ctor(CoreLocation.CLBeacon[],Core
3195031954
M:CoreLocation.CLRegionErrorEventArgs.#ctor(CoreLocation.CLRegion,Foundation.NSError)
3195131955
M:CoreLocation.CLRegionEventArgs.#ctor(CoreLocation.CLRegion)
3195231956
M:CoreLocation.CLRegionStateDeterminedEventArgs.#ctor(CoreLocation.CLRegionState,CoreLocation.CLRegion)
31957+
M:CoreLocation.CLServiceSession.CreateSession(CoreLocation.CLServiceSessionAuthorizationRequirement,CoreFoundation.DispatchQueue,CoreLocation.CLServiceSessionCreateHandler)
31958+
M:CoreLocation.CLServiceSession.CreateSession(CoreLocation.CLServiceSessionAuthorizationRequirement,System.String,CoreFoundation.DispatchQueue,CoreLocation.CLServiceSessionCreateHandler)
31959+
M:CoreLocation.CLServiceSession.CreateSession(CoreLocation.CLServiceSessionAuthorizationRequirement,System.String)
31960+
M:CoreLocation.CLServiceSession.CreateSession(CoreLocation.CLServiceSessionAuthorizationRequirement)
31961+
M:CoreLocation.CLServiceSession.Invalidate
3195331962
M:CoreLocation.CLVisit.Copy(Foundation.NSZone)
3195431963
M:CoreLocation.CLVisit.EncodeTo(Foundation.NSCoder)
3195531964
M:CoreLocation.CLVisitedEventArgs.#ctor(CoreLocation.CLVisit)
@@ -62118,6 +62127,12 @@ P:CoreImage.ICIZoomBlurProtocol.Amount
6211862127
P:CoreImage.ICIZoomBlurProtocol.InputCenter
6211962128
P:CoreImage.ICIZoomBlurProtocol.InputImage
6212062129
P:CoreLocation.CLAuthorizationChangedEventArgs.Status
62130+
P:CoreLocation.CLBackgroundActivitySessionDiagnostic.AuthorizationDenied
62131+
P:CoreLocation.CLBackgroundActivitySessionDiagnostic.AuthorizationDeniedGlobally
62132+
P:CoreLocation.CLBackgroundActivitySessionDiagnostic.AuthorizationRequestInProgress
62133+
P:CoreLocation.CLBackgroundActivitySessionDiagnostic.AuthorizationRestricted
62134+
P:CoreLocation.CLBackgroundActivitySessionDiagnostic.InsufficientlyInUse
62135+
P:CoreLocation.CLBackgroundActivitySessionDiagnostic.ServiceSessionRequired
6212162136
P:CoreLocation.CLBeacon.Accuracy
6212262137
P:CoreLocation.CLBeacon.Major
6212362138
P:CoreLocation.CLBeacon.Minor
@@ -62214,9 +62229,19 @@ P:CoreLocation.CLMonitor.Name
6221462229
P:CoreLocation.CLMonitorConfiguration.EventHandler
6221562230
P:CoreLocation.CLMonitorConfiguration.Name
6221662231
P:CoreLocation.CLMonitorConfiguration.Queue
62232+
P:CoreLocation.CLMonitoringEvent.AccuracyLimited
62233+
P:CoreLocation.CLMonitoringEvent.AuthorizationDenied
62234+
P:CoreLocation.CLMonitoringEvent.AuthorizationDeniedGlobally
62235+
P:CoreLocation.CLMonitoringEvent.AuthorizationRequestInProgress
62236+
P:CoreLocation.CLMonitoringEvent.AuthorizationRestricted
62237+
P:CoreLocation.CLMonitoringEvent.ConditionLimitExceeded
62238+
P:CoreLocation.CLMonitoringEvent.ConditionUnsupported
6221762239
P:CoreLocation.CLMonitoringEvent.Date
6221862240
P:CoreLocation.CLMonitoringEvent.Identifier
62241+
P:CoreLocation.CLMonitoringEvent.InsufficientlyInUse
62242+
P:CoreLocation.CLMonitoringEvent.PersistenceUnavailable
6221962243
P:CoreLocation.CLMonitoringEvent.Refinement
62244+
P:CoreLocation.CLMonitoringEvent.ServiceSessionRequired
6222062245
P:CoreLocation.CLMonitoringEvent.State
6222162246
P:CoreLocation.CLMonitoringRecord.Condition
6222262247
P:CoreLocation.CLMonitoringRecord.LastEvent
@@ -62256,8 +62281,25 @@ P:CoreLocation.CLRegionErrorEventArgs.Region
6225662281
P:CoreLocation.CLRegionEventArgs.Region
6225762282
P:CoreLocation.CLRegionStateDeterminedEventArgs.Region
6225862283
P:CoreLocation.CLRegionStateDeterminedEventArgs.State
62284+
P:CoreLocation.CLServiceSessionDiagnostic.AlwaysAuthorizationDenied
62285+
P:CoreLocation.CLServiceSessionDiagnostic.AuthorizationDenied
62286+
P:CoreLocation.CLServiceSessionDiagnostic.AuthorizationDeniedGlobally
62287+
P:CoreLocation.CLServiceSessionDiagnostic.AuthorizationRequestInProgress
62288+
P:CoreLocation.CLServiceSessionDiagnostic.AuthorizationRestricted
62289+
P:CoreLocation.CLServiceSessionDiagnostic.FullAccuracyDenied
62290+
P:CoreLocation.CLServiceSessionDiagnostic.InsufficientlyInUse
62291+
P:CoreLocation.CLServiceSessionDiagnostic.ServiceSessionRequired
62292+
P:CoreLocation.CLUpdate.AccuracyLimited
62293+
P:CoreLocation.CLUpdate.AuthorizationDenied
62294+
P:CoreLocation.CLUpdate.AuthorizationDeniedGlobally
62295+
P:CoreLocation.CLUpdate.AuthorizationRequestInProgress
62296+
P:CoreLocation.CLUpdate.AuthorizationRestricted
62297+
P:CoreLocation.CLUpdate.InsufficientlyInUse
6225962298
P:CoreLocation.CLUpdate.IsStationary
6226062299
P:CoreLocation.CLUpdate.Location
62300+
P:CoreLocation.CLUpdate.LocationUnavailable
62301+
P:CoreLocation.CLUpdate.ServiceSessionRequired
62302+
P:CoreLocation.CLUpdate.Stationary
6226162303
P:CoreLocation.CLVisit.ArrivalDate
6226262304
P:CoreLocation.CLVisit.Coordinate
6226362305
P:CoreLocation.CLVisit.DepartureDate
@@ -78636,6 +78678,8 @@ T:CoreImage.ICIZoomBlurProtocol
7863678678
T:CoreLocation.CLAccuracyAuthorization
7863778679
T:CoreLocation.CLAuthorizationChangedEventArgs
7863878680
T:CoreLocation.CLBackgroundActivitySession
78681+
T:CoreLocation.CLBackgroundActivitySessionCreateHandler
78682+
T:CoreLocation.CLBackgroundActivitySessionDiagnostic
7863978683
T:CoreLocation.CLBeaconIdentityCondition
7864078684
T:CoreLocation.CLBeaconIdentityConstraint
7864178685
T:CoreLocation.CLCircularGeographicCondition
@@ -78671,6 +78715,10 @@ T:CoreLocation.CLRegionBeaconsRangedEventArgs
7867178715
T:CoreLocation.CLRegionErrorEventArgs
7867278716
T:CoreLocation.CLRegionEventArgs
7867378717
T:CoreLocation.CLRegionStateDeterminedEventArgs
78718+
T:CoreLocation.CLServiceSession
78719+
T:CoreLocation.CLServiceSessionAuthorizationRequirement
78720+
T:CoreLocation.CLServiceSessionCreateHandler
78721+
T:CoreLocation.CLServiceSessionDiagnostic
7867478722
T:CoreLocation.CLUpdate
7867578723
T:CoreLocation.CLVisitedEventArgs
7867678724
T:CoreLocation.ICLLocationManagerDelegate

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

-44
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
!deprecated-attribute-missing! CLUpdate::isStationary missing a [Deprecated] attribute
21
!missing-enum! CLServiceSessionAuthorizationRequirement not bound
3-
!missing-selector! CLMonitoringEvent::accuracyLimited not bound
4-
!missing-selector! CLMonitoringEvent::authorizationDenied not bound
5-
!missing-selector! CLMonitoringEvent::authorizationDeniedGlobally not bound
6-
!missing-selector! CLMonitoringEvent::authorizationRequestInProgress not bound
7-
!missing-selector! CLMonitoringEvent::authorizationRestricted not bound
8-
!missing-selector! CLMonitoringEvent::conditionLimitExceeded not bound
9-
!missing-selector! CLMonitoringEvent::conditionUnsupported not bound
10-
!missing-selector! CLMonitoringEvent::insufficientlyInUse not bound
11-
!missing-selector! CLMonitoringEvent::persistenceUnavailable not bound
12-
!missing-selector! CLMonitoringEvent::serviceSessionRequired not bound
13-
!missing-selector! CLUpdate::accuracyLimited not bound
14-
!missing-selector! CLUpdate::authorizationDenied not bound
15-
!missing-selector! CLUpdate::authorizationDeniedGlobally not bound
16-
!missing-selector! CLUpdate::authorizationRequestInProgress not bound
17-
!missing-selector! CLUpdate::authorizationRestricted not bound
18-
!missing-selector! CLUpdate::insufficientlyInUse not bound
19-
!missing-selector! CLUpdate::locationUnavailable not bound
20-
!missing-selector! CLUpdate::serviceSessionRequired not bound
21-
!missing-selector! CLUpdate::stationary not bound

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

-4
This file was deleted.

0 commit comments

Comments
 (0)