Skip to content

GameKit macOS xcode14.2 rc

Alex Soto edited this page Dec 11, 2022 · 2 revisions

#GameKit.framework https://github.com/xamarin/xamarin-macios/pull/17010

diff -ruN /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h
--- /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h	2022-10-06 13:31:23.000000000 -0400
+++ /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h	2022-11-12 16:00:01.000000000 -0500
@@ -172,6 +172,14 @@
 /// Stop browsing for nearby players.
 - (void)stopBrowsingForNearbyPlayers  NS_AVAILABLE(10_9, 6_0);
 
+#if !TARGET_OS_TV && !TARGET_OS_WATCH
+/// Activate  a  group activity by Game Center for your game, which allows people in the FaceTime call to join the local player's game. The handler will be called for each player who joined from the activity.
+- (void)startGroupActivityWithPlayerHandler:(void(^)(GKPlayer *player))handler API_AVAILABLE(ios(16.0), macos(13.0)) NS_SWIFT_DISABLE_ASYNC;
+
+/// End the group activity created by Game Center for your game, which was activated by the local player.
+- (void)stopGroupActivity API_AVAILABLE(ios(16.0), macos(13.0));
+#endif
+
 @end
 
 __WATCHOS_PROHIBITED
Clone this wiki locally