Skip to content

GameKit tvOS xcode15.0 b5

Haritha Mohan edited this page Oct 20, 2023 · 5 revisions

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

diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h	2023-06-27 03:01:36
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h	2023-07-15 02:30:34
@@ -5,36 +5,36 @@
 #import <GameKit/GKSavedGameListener.h>
 
 /// Class representing a saved game for the local player, or a version of a saved game when in conflict
-API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0)) __WATCHOS_PROHIBITED
+API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos) __WATCHOS_PROHIBITED
 @interface GKSavedGame : NSObject <NSCopying>
 
 NS_ASSUME_NONNULL_BEGIN
 
-@property (atomic, nullable, readonly) NSString *name API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
-@property (atomic, nullable, readonly) NSString *deviceName API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
-@property (atomic, nullable, readonly) NSDate *modificationDate API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+@property (atomic, nullable, readonly) NSString *name API_AVAILABLE(macos(10.10), ios(8.0));
+@property (atomic, nullable, readonly) NSString *deviceName API_AVAILABLE(macos(10.10), ios(8.0));
+@property (atomic, nullable, readonly) NSDate *modificationDate API_AVAILABLE(macos(10.10), ios(8.0));
 
 /// Asynchronously load the data for this saved game. The completion handler is called with loaded data or an error.
-- (void)loadDataWithCompletionHandler:(void(^__nullable)(NSData * __nullable data, NSError * __nullable error))handler NS_AVAILABLE(10_10, 8_0);
+- (void)loadDataWithCompletionHandler:(void(^__nullable)(NSData * __nullable data, NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0));
 
 @end
 
-#if !TARGET_OS_WATCH
+#if !TARGET_OS_TV && !TARGET_OS_WATCH
 @interface GKLocalPlayer (GKSavedGame) <GKSavedGameListener>
 
 /// Asynchronously fetch saved games. The handler is called with an array of GKSavedGame objects or an error.
 /// If there is more than one saved game with the same name then a conflict exists. The application should determine the correct data to use and call resolveConflictingSavedGames:withData:completionHandler:. This may require data merging or asking the user.
-- (void)fetchSavedGamesWithCompletionHandler:(void(^__nullable)(NSArray<GKSavedGame *> * __nullable savedGames, NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+- (void)fetchSavedGamesWithCompletionHandler:(void(^__nullable)(NSArray<GKSavedGame *> * __nullable savedGames, NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos);
 
 /// Asynchronously save game data. If a saved game with that name already exists it is overwritten, otherwise a new one is created. The completion handler is called with the new / modified GKSavedGame or an error.
 /// If the saved game was in conflict then the overwritten version will be the one with the same deviceName if present, otherwise the most recent overall.
-- (void)saveGameData:(NSData *)data withName:(NSString *)name completionHandler:(void(^__nullable)(GKSavedGame * __nullable savedGame, NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+- (void)saveGameData:(NSData *)data withName:(NSString *)name completionHandler:(void(^__nullable)(GKSavedGame * __nullable savedGame, NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos);
 
 /// Asynchronously delete saved games with the given name. The completion handler will indicate whether or not the deletion was successful.
-- (void)deleteSavedGamesWithName:(NSString *)name completionHandler:(void(^__nullable)(NSError * __nullable error))handler NS_AVAILABLE(10_10, 8_0) API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+- (void)deleteSavedGamesWithName:(NSString *)name completionHandler:(void(^__nullable)(NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos);
 
 /// Asynchronously resolve a saved game conflict. This deletes all versions included in conflictingSavedGames and creates a new version with the given data. The completion handler is called with the newly created save and all other remaining versions or an error.
-- (void)resolveConflictingSavedGames:(NSArray<GKSavedGame *> *)conflictingSavedGames withData:(NSData *)data completionHandler:(void(^__nullable)(NSArray<GKSavedGame *> * __nullable savedGames, NSError * __nullable error))handler NS_AVAILABLE(10_10, 8_0) API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+- (void)resolveConflictingSavedGames:(NSArray<GKSavedGame *> *)conflictingSavedGames withData:(NSData *)data completionHandler:(void(^__nullable)(NSArray<GKSavedGame *> * __nullable savedGames, NSError * __nullable error))handler API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos);
 
 @end
 #endif
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h	2023-06-27 03:01:37
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h	2023-07-15 02:30:35
@@ -8,15 +8,15 @@
 @class GKSavedGame;
 
 NS_ASSUME_NONNULL_BEGIN
-API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0)) __WATCHOS_PROHIBITED
+API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos) __WATCHOS_PROHIBITED
 @protocol GKSavedGameListener <NSObject>
 @optional
 
 /// Called when a player’s saved game data has been modified.
-- (void)player:(GKPlayer *)player didModifySavedGame:(GKSavedGame *)savedGame  API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+- (void)player:(GKPlayer *)player didModifySavedGame:(GKSavedGame *)savedGame API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos);
 
 /// Called when a conflict has arisen between different versions of the same saved game. This can happen when multiple devices write to the same saved game while one or more is offline. The application should determine the correct data to use, then call resolveConflictingSavedGames:withData:completionHandler:. This may require data merging or asking the user.
-- (void)player:(GKPlayer *)player hasConflictingSavedGames:(NSArray<GKSavedGame *> *)savedGames  API_AVAILABLE(macos(10.10), ios(8.0), tvos(17.0));
+- (void)player:(GKPlayer *)player hasConflictingSavedGames:(NSArray<GKSavedGame *> *)savedGames  API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(tvos);
 
 @end
 NS_ASSUME_NONNULL_END
Clone this wiki locally