|
7 | 7 | using CoreGraphics;
|
8 | 8 | using Foundation;
|
9 | 9 | using ObjCRuntime;
|
| 10 | +using UniformTypeIdentifiers; |
10 | 11 | #if MONOMAC
|
11 | 12 | using AppKit;
|
12 | 13 | #else
|
@@ -234,6 +235,11 @@ interface BEWebContentProcess
|
234 | 235 | [Async]
|
235 | 236 | void Create (Action interruptionHandler, BEWebContentProcessCreateCallback completion);
|
236 | 237 |
|
| 238 | + [Static] |
| 239 | + [Export ("webContentProcessWithBundleID:interruptionHandler:completion:")] |
| 240 | + [Async] |
| 241 | + void Create (string bundleId, Action interruptionHandler, BEWebContentProcessCreateCallback completion); |
| 242 | + |
237 | 243 | [Export ("invalidate")]
|
238 | 244 | void Invalidate ();
|
239 | 245 |
|
@@ -269,6 +275,11 @@ interface BENetworkingProcess
|
269 | 275 | [Async]
|
270 | 276 | void Create (Action interruptionHandler, BENetworkingProcessCreateCallback completion);
|
271 | 277 |
|
| 278 | + [iOS (18, 2), Mac (15, 2), MacCatalyst (18, 2)] |
| 279 | + [Static] |
| 280 | + [Export ("networkProcessWithBundleID:interruptionHandler:completion:")] |
| 281 | + void Create (string bundleId, Action interruptionHandler, BENetworkingProcessCreateCallback completion); |
| 282 | + |
272 | 283 | [Export ("invalidate")]
|
273 | 284 | void Invalidate ();
|
274 | 285 |
|
@@ -301,6 +312,11 @@ interface BERenderingProcess
|
301 | 312 | [Async]
|
302 | 313 | void Create (Action interruptionHandler, BERenderingProcessCreateCallback completion);
|
303 | 314 |
|
| 315 | + [Static] |
| 316 | + [Export ("renderingProcessWithBundleID:interruptionHandler:completion:")] |
| 317 | + [Async] |
| 318 | + void Create (string bundleId, Action interruptionHandler, BERenderingProcessCreateCallback completion); |
| 319 | + |
304 | 320 | [Export ("invalidate")]
|
305 | 321 | void Invalidate ();
|
306 | 322 |
|
@@ -1164,6 +1180,18 @@ interface NSObject_BEAccessibility
|
1164 | 1180 |
|
1165 | 1181 | [Export ("browserAccessibilityDeleteTextAtCursor:")]
|
1166 | 1182 | void BrowserAccessibilityDeleteTextAtCursor (nint numberOfCharacters);
|
| 1183 | + |
| 1184 | + [iOS (18, 2), TV (18, 2), MacCatalyst (18, 2), Mac (15, 2)] |
| 1185 | + [Export ("accessibilityLineEndPositionFromCurrentSelection")] |
| 1186 | + nint GetAccessibilityLineEndPositionFromCurrentSelection (); |
| 1187 | + |
| 1188 | + [iOS (18, 2), TV (18, 2), MacCatalyst (18, 2), Mac (15, 2)] |
| 1189 | + [Export ("accessibilityLineStartPositionFromCurrentSelection")] |
| 1190 | + nint GetAccessibilityLineStartPositionFromCurrentSelection (); |
| 1191 | + |
| 1192 | + [iOS (18, 2), TV (18, 2), MacCatalyst (18, 2), Mac (15, 2)] |
| 1193 | + [Export ("accessibilityLineRangeForPosition:")] |
| 1194 | + NSRange GetAccessibilityLineRangeForPosition (nint position); |
1167 | 1195 | }
|
1168 | 1196 |
|
1169 | 1197 | [BackingFieldType (typeof (ulong))]
|
@@ -1194,5 +1222,134 @@ public enum BEAccessibilityNotification : long {
|
1194 | 1222 | [Field ("BEAccessibilityValueChangedNotification")]
|
1195 | 1223 | Changed,
|
1196 | 1224 | }
|
| 1225 | + |
| 1226 | + [iOS (18, 2), TV (18, 2), Mac (15, 2), MacCatalyst (18, 2)] |
| 1227 | + [BaseType (typeof (NSObject))] |
| 1228 | + interface BEAccessibilityTextMarker : NSCopying, NSSecureCoding |
| 1229 | + { |
| 1230 | + } |
| 1231 | + |
| 1232 | + [iOS (18, 2), TV (18, 2), Mac (15, 2), MacCatalyst (18, 2)] |
| 1233 | + [BaseType (typeof (NSObject))] |
| 1234 | + interface BEAccessibilityTextMarkerRange : NSCopying, NSSecureCoding |
| 1235 | + { |
| 1236 | + [Export ("startMarker", ArgumentSemantic.Strong)] |
| 1237 | + BEAccessibilityTextMarker StartMarker { get; set; } |
| 1238 | + |
| 1239 | + [Export ("endMarker", ArgumentSemantic.Strong)] |
| 1240 | + BEAccessibilityTextMarker EndMarker { get; set; } |
| 1241 | + } |
| 1242 | + |
| 1243 | + [iOS (18, 2), TV (18, 2), Mac (15, 2), MacCatalyst (18, 2)] |
| 1244 | + [Protocol (BackwardsCompatibleCodeGeneration = false)] |
| 1245 | + interface BEAccessibilityTextMarkerSupport |
| 1246 | + { |
| 1247 | + [Abstract] |
| 1248 | + [Export ("accessibilityBoundsForTextMarkerRange:")] |
| 1249 | + CGRect GetAccessibilityBounds (BEAccessibilityTextMarkerRange range); |
| 1250 | + |
| 1251 | + [Abstract] |
| 1252 | + [Export ("accessibilityContentForTextMarkerRange:")] |
| 1253 | + [return: NullAllowed] |
| 1254 | + string GetAccessibilityContent (BEAccessibilityTextMarkerRange range); |
| 1255 | + |
| 1256 | + [Abstract] |
| 1257 | + [return: NullAllowed] |
| 1258 | + [Export ("accessibilityTextMarkerRangeForCurrentSelection")] |
| 1259 | + BEAccessibilityTextMarkerRange GetAccessibilityTextMarkerRangeForCurrentSelection (); |
| 1260 | + |
| 1261 | + [Abstract] |
| 1262 | + [Export ("accessibilityTextMarkerRange")] |
| 1263 | + BEAccessibilityTextMarkerRange GetAccessibilityTextMarkerRange (); |
| 1264 | + |
| 1265 | + [Abstract] |
| 1266 | + [Export ("accessibilityNextTextMarker:")] |
| 1267 | + [return: NullAllowed] |
| 1268 | + BEAccessibilityTextMarker GetAccessibilityNextTextMarker (BEAccessibilityTextMarker marker); |
| 1269 | + |
| 1270 | + [Abstract] |
| 1271 | + [Export ("accessibilityPreviousTextMarker:")] |
| 1272 | + [return: NullAllowed] |
| 1273 | + BEAccessibilityTextMarker GetAccessibilityPreviousTextMarker (BEAccessibilityTextMarker marker); |
| 1274 | + |
| 1275 | + [Abstract] |
| 1276 | + [Export ("accessibilityLineEndMarkerForMarker:")] |
| 1277 | + [return: NullAllowed] |
| 1278 | + BEAccessibilityTextMarker GetAccessibilityLineEndMarker (BEAccessibilityTextMarker marker); |
| 1279 | + |
| 1280 | + [Abstract] |
| 1281 | + [Export ("accessibilityLineStartMarkerForMarker:")] |
| 1282 | + [return: NullAllowed] |
| 1283 | + BEAccessibilityTextMarker GetAccessibilityLineStartMarker (BEAccessibilityTextMarker marker); |
| 1284 | + |
| 1285 | + [Abstract] |
| 1286 | + [Export ("accessibilityMarkerForPoint:")] |
| 1287 | + [return: NullAllowed] |
| 1288 | + BEAccessibilityTextMarker GetAccessibilityMarker (CGPoint point); |
| 1289 | + |
| 1290 | + [Abstract] |
| 1291 | + [Export ("accessibilityTextMarkerForPosition:")] |
| 1292 | + [return: NullAllowed] |
| 1293 | + BEAccessibilityTextMarker GetAccessibilityTextMarker (nint position); |
| 1294 | + |
| 1295 | + [Abstract] |
| 1296 | + [Export ("accessibilityTextMarkerRangeForRange:")] |
| 1297 | + [return: NullAllowed] |
| 1298 | + BEAccessibilityTextMarkerRange GetAccessibilityTextMarker (NSRange range); |
| 1299 | + |
| 1300 | + [Abstract] |
| 1301 | + [Export ("accessibilityRangeForTextMarkerRange:")] |
| 1302 | + NSRange GetAccessibilityRange (BEAccessibilityTextMarkerRange range); |
| 1303 | + } |
| 1304 | + |
| 1305 | + [NoTV, NoMac, iOS (18, 2), MacCatalyst (18, 2)] |
| 1306 | + [BaseType (typeof (NSObject))] |
| 1307 | + [DisableDefaultCtor] |
| 1308 | + interface BEDownloadMonitorLocation |
| 1309 | + { |
| 1310 | + [Export ("url")] |
| 1311 | + NSUrl Url { get; } |
| 1312 | + |
| 1313 | + [Export ("bookmarkData")] |
| 1314 | + NSData BookmarkData { get; } |
| 1315 | + } |
| 1316 | + |
| 1317 | + delegate void BEDownloadMonitorUseDownloadsFolderCallback ([NullAllowed] BEDownloadMonitorLocation finalLocation); |
| 1318 | + delegate void BEDownloadMonitorBeginMonitoringCallback ([NullAllowed] BEDownloadMonitorLocation placeholderLocation, [NullAllowed] NSError error); |
| 1319 | + delegate void BEDownloadMonitorResumeMonitoringCallback ([NullAllowed] NSError error); |
| 1320 | + |
| 1321 | + [NoTV, NoMac, iOS (18, 2), MacCatalyst (18, 2)] |
| 1322 | + [BaseType (typeof (NSObject))] |
| 1323 | + [DisableDefaultCtor] |
| 1324 | + interface BEDownloadMonitor |
| 1325 | + { |
| 1326 | + [Export ("initWithSourceURL:destinationURL:observedProgress:liveActivityAccessToken:")] |
| 1327 | + NativeHandle Constructor (NSUrl sourceUrl, NSUrl destinationUrl, NSProgress observedProgress, NSData liveActivityAccessToken); |
| 1328 | + |
| 1329 | + [Export ("useDownloadsFolderWithPlaceholderType:finalFileCreatedHandler:")] |
| 1330 | + void UseDownloadsFolder ([NullAllowed] UTType placehodlerType, BEDownloadMonitorUseDownloadsFolderCallback finalFileCreatedHandler); |
| 1331 | + |
| 1332 | + [Async] |
| 1333 | + [Export ("beginMonitoring:")] |
| 1334 | + void BeginMonitoring (BEDownloadMonitorBeginMonitoringCallback completion); |
| 1335 | + |
| 1336 | + [Async] |
| 1337 | + [Export ("resumeMonitoring:completionHandler:")] |
| 1338 | + void ResumeMonitoring (NSUrl url, BEDownloadMonitorResumeMonitoringCallback completionHandler); |
| 1339 | + |
| 1340 | + [Export ("identifier")] |
| 1341 | + NSUuid Identifier { get; } |
| 1342 | + |
| 1343 | + [Export ("sourceURL")] |
| 1344 | + NSUrl SourceUrl { get; } |
| 1345 | + |
| 1346 | + [Export ("destinationURL")] |
| 1347 | + NSUrl DestinationUrl { get; } |
| 1348 | + |
| 1349 | + [Static] |
| 1350 | + [return: NullAllowed] |
| 1351 | + [Export ("createAccessToken")] |
| 1352 | + NSData CreateAccessToken (); |
| 1353 | + } |
1197 | 1354 | }
|
1198 | 1355 | #endif
|
0 commit comments