-
Notifications
You must be signed in to change notification settings - Fork 558
SafariServices iOS xcode26.4 b2
Rolf Bjarne Kvinge edited this page Feb 27, 2026
·
1 revision
#SafariServices.framework
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionManager.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionManager.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionManager.h 2025-11-19 07:14:11
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionManager.h 2026-02-18 08:03:55
@@ -15,6 +15,12 @@
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
+/// Returns information about the state of a Safari web extension contained within your app.
+/// - Parameters:
+/// - identifier: The bundle identifier for the Safari web extension to check.
+/// - completionHandler: The completion handler the system calls with either the state of the extension or an error.
+/// - term state: An object that describes the current state of the Safari web extension, or `nil` if the system can't find the extension.
+/// - term error: An error object indicating the reason for the failure, or `nil` if no failure occurs.
+ (void)getStateOfExtensionWithIdentifier:(NSString *)identifier completionHandler:(void (^)(SFSafariExtensionState * _Nullable state, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(stateOfExtension(withIdentifier:));
@end
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionState.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionState.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionState.h 2025-11-19 07:14:10
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariExtensionState.h 2026-02-18 08:03:55
@@ -10,6 +10,7 @@
SF_EXTERN API_AVAILABLE(ios(26.2), visionos(26.2)) API_UNAVAILABLE(tvos, watchos)
@interface SFSafariExtensionState : NSObject
+/// A Boolean value that indicates whether the web extension is enabled.
@property (nonatomic, readonly, getter=isEnabled) BOOL enabled;
@end
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h 2025-11-19 07:14:11
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h 2026-02-18 08:03:55
@@ -13,8 +13,19 @@
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
+/// Launches Settings and opens Safari's export browsing data sheet
+/// - Parameters:
+/// - completionHandler: The block the system calls after the operation completes, with an optional error parameter if an error occurs.
+/// - term error: An error object indicating the reason for the failure, or `nil` if the system successfully opens the sheet.
+/// @discussion Call this method when your app is in the foreground, otherwise it returns an error.
+ (void)openExportBrowsingDataSettingsWithCompletionHandler:(nullable NS_SWIFT_UI_ACTOR void (^)(NSError * _Nullable error))completionHandler;
+/// Launches Settings to Safari Extensions Settings
+/// - Parameters:
+/// - extensionIdentifiers: An array of extension identifiers. If you specify one identifier, Settings opens to that extension's detail view. If you specify multiple identifiers, Settings opens to the Safari Extensions pane and highlights those extensions.
+/// - completionHandler: The block the system calls after the operation completes, with an optional error parameter if an error occurs.
+/// - term error: An error object indicating the reason for the failure, or `nil` if the system successfully opens to Safari Extensions Settings.
+/// @discussion Call this method when your app is in the foreground, otherwise it returns an error.
+ (void)openExtensionsSettingsForIdentifiers:(NSArray<NSString *> *)extensionIdentifiers completionHandler:(nullable NS_SWIFT_UI_ACTOR void (^)(NSError * _Nullable error))completionHandler API_AVAILABLE(ios(26.2), visionos(26.2));
@end