@@ -1157,11 +1157,52 @@ interface CLLocationSourceInformation : NSCopying, NSSecureCoding {
1157
1157
[ Watch ( 10 , 0 ) , TV ( 17 , 0 ) , Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) , TV ( 17 , 0 ) ]
1158
1158
[ BaseType ( typeof ( NSObject ) ) ]
1159
1159
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." ) ]
1160
1165
[ Export ( "isStationary" ) ]
1161
1166
bool IsStationary { get ; }
1162
1167
1163
1168
[ NullAllowed , Export ( "location" ) ]
1164
1169
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 ; }
1165
1206
}
1166
1207
1167
1208
[ NoWatch , NoTV , Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) ]
@@ -1190,6 +1231,46 @@ interface CLMonitoringEvent : NSSecureCoding {
1190
1231
1191
1232
[ Export ( "date" , ArgumentSemantic . Strong ) ]
1192
1233
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 ; }
1193
1274
}
1194
1275
1195
1276
[ NoWatch , NoTV , Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) ]
@@ -1304,7 +1385,9 @@ interface CLBeaconIdentityCondition : NSCopying, NSSecureCoding {
1304
1385
NativeHandle Constructor ( NSUuid uuid , ushort major , ushort minor ) ;
1305
1386
}
1306
1387
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 ) ]
1308
1391
[ BaseType ( typeof ( NSObject ) ) ]
1309
1392
[ DisableDefaultCtor ]
1310
1393
interface CLBackgroundActivitySession {
@@ -1316,5 +1399,98 @@ interface CLBackgroundActivitySession {
1316
1399
[ Static ]
1317
1400
[ Export ( "backgroundActivitySession" ) ]
1318
1401
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 ( ) ;
1319
1495
}
1320
1496
}
0 commit comments