-
Notifications
You must be signed in to change notification settings - Fork 569
BrowserEngineKit iOS xcode27.0 b1
Alex Soto edited this page Jun 9, 2026
·
1 revision
#BrowserEngineKit.framework
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h 2026-04-18 22:55:19
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h 2026-05-23 03:18:30
@@ -6,6 +6,7 @@
//
#import <BrowserEngineKit/BEMacros.h>
+#import <CoreVideo/CoreVideo.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@@ -33,6 +34,12 @@
BEAccessibilityContainerTypeDescriptionList = 1 << 11,
} BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+typedef NS_ENUM(NSInteger, BEAccessibilityOrientation) {
+ BEAccessibilityOrientationUnknown = 0,
+ BEAccessibilityOrientationVertical,
+ BEAccessibilityOrientationHorizontal
+} BROWSERENGINE_ACCESSIBILITY_AVAILABILITY_27;
+
@interface NSObject (BEAccessibility)
/**
@@ -129,6 +136,47 @@
@param position A text cursor position within a line of text.
*/
- (NSRange)accessibilityLineRangeForPosition:(NSInteger)position BROWSERENGINE_ACCESSIBILITY_MARKER_AVAILABILITY;
+
+/**
+ @abstract Represents the value of aria-keyshortcuts.
+ default: nil
+ */
+@property (nonatomic, strong, nullable) NSString *browserAccessibilityKeyboardShortcuts BROWSERENGINE_ACCESSIBILITY_AVAILABILITY_27;
+
+/**
+ @abstract Represents the value of aria-details. Returns an array of objects.
+ default: []
+ */
+@property (nonatomic, strong) NSArray<NSObject *> *browserAccessibilityDetailsElements BROWSERENGINE_ACCESSIBILITY_AVAILABILITY_27;
+
+/**
+ @abstract Represents the value of aria-orientation.
+ default: BEAccessibilityOrientationUnknown
+ */
+@property (nonatomic, assign) BEAccessibilityOrientation browserAccessibilityOrientation BROWSERENGINE_ACCESSIBILITY_AVAILABILITY_27;
+
+/**
+ @abstract Returns the native pixel dimensions of the image represented by this element.
+ @result An NSValue wrapping a CGSize, or nil if this element does not represent an image.
+ */
+- (nullable NSValue *)browserAccessibilityImageDataSize NS_REFINED_FOR_SWIFT BROWSERENGINE_ACCESSIBILITY_AVAILABILITY_27;
+
+/**
+ @abstract Returns image pixel data for this element as a CVPixelBuffer.
+
+ @param attributes A dictionary of CVPixelBuffer attributes specifying the desired format and size.
+
+ Supported keys:
+ kCVPixelBufferPixelFormatTypeKey (NSNumber / OSType) — The desired pixel format,
+ e.g. kCVPixelFormatType_32RGBA. Required.
+ kCVPixelBufferWidthKey (NSNumber) — Target image width in pixels. Absent means native width.
+ kCVPixelBufferHeightKey (NSNumber) — Target image height in pixels. Absent means native height.
+
+ @result A CVPixelBuffer containing the image pixel data, or NULL if this element does not
+ represent an image or the requested pixel format is unsupported. The caller is responsible
+ for releasing the returned pixel buffer.
+ */
+- (nullable CVPixelBufferRef)browserAccessibilityImageData:(NSDictionary *)attributes CF_RETURNS_RETAINED BROWSERENGINE_ACCESSIBILITY_AVAILABILITY_27;
@end
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h 2026-04-18 23:11:07
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h 2026-05-23 04:04:02
@@ -57,10 +57,10 @@
#endif
/// Activates the media environment.
--(BOOL)activateWithError:(NSError* _Nullable*)error;
+-(BOOL)activateWithError:(NSError* _Nullable*)error API_DEPRECATED("Use -[BEProcessCapability activateWithError:] instead", ios(17.4, API_TO_BE_DEPRECATED));
/// Suspends the media environment.
--(BOOL)suspendWithError:(NSError* _Nullable*)error;
+-(BOOL)suspendWithError:(NSError* _Nullable*)error API_DEPRECATED("Use -[BEProcessCapability suspendWithError:] instead", ios(17.4, API_TO_BE_DEPRECATED));
/// Creates a new capture session in this media environment.
///
@@ -80,6 +80,8 @@
/// The helper extension process may access AV hardware required for media capture and playback.
+(instancetype)mediaPlaybackAndCaptureWithEnvironment:(BEMediaEnvironment*)environment API_UNAVAILABLE(macosx);
+/// The helper extension process may capture the contents of the screen.
++(instancetype)screenCaptureWithEnvironment:(BEMediaEnvironment*)environment API_UNAVAILABLE(macosx);
/// The helper extension process may run in the background to finish work.
+(instancetype)background;
@@ -94,6 +96,12 @@
///
/// Returns the granted capability or nil and an error if it can not be granted
-(id<BEProcessCapabilityGrant>)requestWithError:(NSError* _Nullable*)error;
+
+/// Activates the capability.
+-(BOOL)activateWithError:(NSError* _Nullable*)error;
+
+/// Suspends the capability.
+-(BOOL)suspendWithError:(NSError* _Nullable*)error;
@end
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEScrollView.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEScrollView.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEScrollView.h 2026-04-18 22:55:19
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEScrollView.h 2026-05-24 13:20:37
@@ -16,7 +16,10 @@
@class BEScrollView, BEScrollViewScrollUpdate;
-BROWSERENGINE_EXPORT API_AVAILABLE(ios(17.4)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
+API_AVAILABLE(ios(17.4))
+API_UNAVAILABLE(watchos)
+BROWSERENGINE_EXPORT
+NS_SWIFT_UI_ACTOR
@protocol BEScrollViewDelegate <UIScrollViewDelegate>
@optional
@@ -43,7 +46,10 @@
// A scroll view with features specific to browsers.
-BROWSERENGINE_EXPORT API_AVAILABLE(ios(17.4)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
+API_AVAILABLE(ios(17.4))
+API_UNAVAILABLE(watchos)
+BROWSERENGINE_EXPORT
+NS_SWIFT_UI_ACTOR
@interface BEScrollView : UIScrollView
@property (nonatomic, weak, nullable) id<BEScrollViewDelegate> delegate;
@@ -61,7 +67,10 @@
// An update from a scroll view issued during a scroll event (e.g. trackpad or mouse wheel) or deceleration after a scroll event.
-BROWSERENGINE_EXPORT API_AVAILABLE(ios(17.4)) NS_SWIFT_UI_ACTOR
+API_AVAILABLE(ios(17.4))
+API_UNAVAILABLE(watchos)
+BROWSERENGINE_EXPORT
+NS_SWIFT_UI_ACTOR
@interface BEScrollViewScrollUpdate : NSObject
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEWebContentFilter.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEWebContentFilter.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEWebContentFilter.h 2026-04-18 22:55:19
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEWebContentFilter.h 2026-05-24 13:24:42
@@ -8,8 +8,27 @@
#import <BrowserEngineKit/BEMacros.h>
#import <Foundation/Foundation.h>
+#if BROWSERENGINEKIT_HAS_UIKIT
+#import <UIKit/UIKit.h>
+#endif
+
NS_ASSUME_NONNULL_BEGIN
+/*! @enum BEWebContentFilterPermissionDecision
+ @abstract The outcome of a Permission Request to add URL to allow-list
+ @constant BEWebContentFilterPermissionDecisionError Default value, returned if there is failure to retrieve decision.
+ @constant BEWebContentFilterPermissionDecisionAllowed Request to permit URL is allowed. URL is added to filter allow-list.
+ @constant BEWebContentFilterPermissionDecisionDenied Request to permit URL access is denied.
+ @constant BEWebContentFilterPermissionDecisionPending Request to permit URL is pending.
+ */
+typedef NS_ENUM(NSInteger, BEWebContentFilterPermissionDecision) {
+ BEWebContentFilterPermissionDecisionError,
+ BEWebContentFilterPermissionDecisionAllowed,
+ BEWebContentFilterPermissionDecisionDenied,
+ BEWebContentFilterPermissionDecisionPending,
+};
+#define BEWEBCONTENTFILTERPERMISSIONDECISION_DEFINED 1
+
/// An object that represents a web content filter
API_AVAILABLE(ios(26.2))
API_UNAVAILABLE(macos, watchos, tvos, visionos)
@@ -22,8 +41,8 @@
@property (class, readonly) BOOL shouldEvaluateURLs;
/**
- @abstract Evaluates whether a URL should be blocked and if so, provides a UTF-8
- encoded HTML representation of a blocking page.
+ @abstract Evaluates whether a URL should be blocked and if so, provides a
+ response body representing the HTML of a blocking page.
@param url The URL to be evaluated.
@param completionHandler The completion block to be invoked with result when
evaluation is complete. Result is YES if the url should be blocked, and NO if it isn't.
@@ -33,6 +52,32 @@
- (void)evaluateURL:(NSURL *)url completionHandler:(void (^)(BOOL shouldBlock, NSData * _Nullable blockPageRepresentation))completionHandler;
/**
+ @abstract Evaluates whether a URL should be blocked and if yes, provides a
+ response body representing the HTML of the blocking content that will be displayed
+ in either the blocked main document or blocked subframe.
+ @param url The URL to be evaluated.
+ @param mainDocumentURL The URL of the main document, also the root URL of the
+ transitive trust policy
+ @param completionHandler The completion block to be invoked when evaluation is
+ complete.
+ */
+- (void)evaluateURL:(NSURL *)url mainDocumentURL:(NSURL * _Nullable)mainDocumentURL completionHandler:(void (^)(BOOL shouldBlock, NSData * _Nullable blockPageRepresentation))completionHandler API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(macos, watchos, tvos, visionos);
+
+/**
+ @abstract Evaluates whether a URL should be blocked and if yes, provides a
+ response body representing the HTML of the blocking content that will be displayed
+ in either the blocked main document or blocked subframe.
+ @param url The URL to be evaluated, either a main frame or subframe URL.
+ @param mainFrameURL The URL of the main document and root of the transitive trust
+ policy. This may match the evaluated `url` param for main frame navigations.
+ @param isMainFrame Whether the evaluated URL is a main frame or subframe navigation.
+ YES if main frame navigation and NO otherwise.
+ @param completionHandler The completion block to be invoked when evaluation is
+ complete.
+ */
+- (void)evaluateURL:(NSURL *)url mainFrameURL:(NSURL *)mainFrameURL isMainFrame:(BOOL)isMainFrame completionHandler:(void (^)(BOOL shouldBlock, NSData * _Nullable blockPageRepresentation))completionHandler API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(macos, watchos, tvos, visionos);
+
+/**
@abstract Adds blocked URL to built-in web content filter's allowlist.
@param url The URL to be added.
@param completionHandler The completion block to be called when the add
@@ -40,6 +85,29 @@
successfully, and NO if it isn't.
*/
- (void)allowURL:(NSURL *)url completionHandler:(void (^)(BOOL didAllow, NSError * _Nullable error))completionHandler;
+
+/**
+ @abstract Request a blocked URL to be added to built-in web content filter's allowlist
+ @param url The URL to be added.
+ @param referrerURL The URL that initiated the permission request. This determines whether or not parent approval is done remotely or on-device.
+ @param completionHandler The completion block to be called when the add
+ operation is complete, with result of the operation. Result is BEWebContentFilterPermissionDecision that holds
+ the outcome of the request for access.
+ */
+- (void)requestPermissionForURL:(NSURL *)url referrerURL:(NSURL * _Nullable)referrerURL completionHandler:(void (^)(BEWebContentFilterPermissionDecision result, NSError * _Nullable error))completionHandler API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(macos, watchos, tvos, visionos);
+
+#if BROWSERENGINEKIT_HAS_UIVIEW
+/**
+ @abstract Request a blocked URL to be added to built-in web content filter's allowlist
+ @param url The URL to be added.
+ @param referrerURL The URL that initiated the permission request. This determines whether or not parent approval is done remotely or on-device.
+ @param presentingView The view to present permission UI from.
+ @param completionHandler The completion block to be called when the add
+ operation is complete, with result of the operation. Result is BEWebContentFilterPermissionDecision that holds
+ the outcome of the request for access.
+ */
+- (void)requestPermissionForURL:(NSURL *)url referrerURL:(NSURL * _Nullable)referrerURL presentingView:(UIView * _Nullable)presentingView completionHandler:(void (^)(BEWebContentFilterPermissionDecision result, NSError * _Nullable error))completionHandler API_AVAILABLE(ios(27.0)) API_UNAVAILABLE(macos, watchos, tvos, visionos);
+#endif
@end
NS_ASSUME_NONNULL_END