Skip to content

ExtensionKit macOS xcode15.0 b1

Manuel de la Pena edited this page Sep 5, 2023 · 3 revisions

#ExtensionKit.framework https://github.com/xamarin/xamarin-macios/pull/18929

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXAppExtensionBrowserViewController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXAppExtensionBrowserViewController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXAppExtensionBrowserViewController.h	2023-03-09 19:09:10
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXAppExtensionBrowserViewController.h	2023-05-19 22:58:07
@@ -18,12 +18,18 @@
 NS_ASSUME_NONNULL_BEGIN
 
 API_AVAILABLE(macos(13.0))
-API_UNAVAILABLE(ios, watchos, tvos)
+API_UNAVAILABLE(ios)
+API_UNAVAILABLE(watchos, tvos)
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 EXTENSIONKIT_EXPORT
 #if TARGET_OS_OSX
+/// A view controller that allows users to enable and disable extensions.
 @interface EXAppExtensionBrowserViewController : NSViewController
 @end
 #else
+/// A view controller that allows users to enable and disable extensions.
 @interface EXAppExtensionBrowserViewController : UIViewController
 @end
 #endif // TARGET_OS_OSX
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXHostViewController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXHostViewController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXHostViewController.h	2023-03-09 19:09:10
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ExtensionKit.framework/Headers/EXHostViewController.h	2023-05-19 22:58:07
@@ -18,41 +18,70 @@
 
 @protocol EXHostViewControllerDelegate;
 
-/// A view controller that will host remote UI provided by an extension.
-API_AVAILABLE(macos(13.0))
-API_UNAVAILABLE(ios, watchos, tvos)
+API_AVAILABLE(macos(13.0), ios(17.0))
+API_AVAILABLE(watchos(9.0), tvos(16.0))
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 EXTENSIONKIT_EXPORT
 #if TARGET_OS_OSX
+/// A view controller that hosts remote views provided by an extension.
 @interface EXHostViewController : NSViewController
 #else
+/// A view controller that hosts remote views provided by an extension.
 @interface EXHostViewController : UIViewController
 #endif
 
-/// The view controller's delegate. The delegate will receive callbacks when the hosting state changes.
+/// The connection delegate.
 @property (weak, nonatomic, nullable) id<EXHostViewControllerDelegate> delegate;
 
-/// A placeholder view that will be displayed while the remote UI is being loaded or if the remote process exits.
 #if TARGET_OS_OSX
+/// A view that’s used when the view controller has no content to display.
 @property (strong, nonatomic) NSView* placeholderView;
 #else
+/// A view that’s used when the view controller has no content to display.
 @property (strong, nonatomic) UIView* placeholderView;
 #endif
 
-/// Returns the connection, the caller is responsible for configuring the connection.
+/// Attempts to connect to the extension over XPC.
+///
+/// - Returns: An object representing the connection.
 -(nullable NSXPCConnection*)makeXPCConnectionWithError:(NSError* __nullable*)error;
 
 @end
 
-/// The host view controller delegate will receive callbacks when the host view controller's state changes.
-API_AVAILABLE(macos(13.0))
-API_UNAVAILABLE(ios, watchos, tvos)
+API_AVAILABLE(macos(13.0), ios(17.0))
+API_AVAILABLE(watchos(9.0), tvos(16.0))
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
+/// The delegate for a hosted view controller.
 @protocol EXHostViewControllerDelegate <NSObject>
 @optional
 
-/// Called when extension process has launched and the remote scene is connected. After this delegate method has been called the host view controller can establish an XPC connection with the scene in the extension process.
+/// A delegate method the view controller calls when a connection succeeds.
+///
+/// This delegate method gets called when the extension process has launched and
+/// the remote scene connects. After this delegate method gets called the host
+/// view controller can establish an XPC connection with the scene in the
+/// extension process.
+///
+/// - Parameters:
+///   - viewController: The user interface object from the remote process.
 -(void)hostViewControllerDidActivate:(EXHostViewController*)viewController;
 
-/// Called when the view controller will stop hosting the remote user interface. This can occur when the extension exits or when the view controller's `configuration` property is changed.
+/// A delegate method the host view controller calls when an extension
+/// disconnects.
+///
+/// Called when the host view controller stops hosting the remote user
+/// interface. This can occur when the extension exits or when the view
+/// controller’s configuration property changes.
+///
+/// - Parameters:
+///   - viewController: The view controller for the extension that’s disconnecting
+///
+///   - error: An error object containing information about why the object
+/// disconnected, or `nil` if it’s disconnecting without error.
 -(void)hostViewControllerWillDeactivate:(EXHostViewController*)viewController error:(nullable NSError *)error;
 
 @end
Clone this wiki locally