@@ -535,10 +535,8 @@ interface GKLeaderboardSet : NSCoding, NSSecureCoding {
535
535
[ Async ]
536
536
void LoadLeaderboardsWithCompletionHandler ( GKLeaderboardsHandler handler ) ;
537
537
538
- [ NoMac ]
539
538
[ NoTV ]
540
539
[ NoWatch ]
541
- [ NoMacCatalyst ]
542
540
[ Export ( "loadImageWithCompletionHandler:" ) ]
543
541
[ Async ]
544
542
void LoadImage ( [ NullAllowed ] GKImageLoadedHandler completionHandler ) ;
@@ -917,8 +915,7 @@ interface GKLocalPlayer
917
915
Action < NSViewController , NSError > AuthenticateHandler { get ; set ; }
918
916
#endif
919
917
920
- [ NoWatch , NoTV , Mac ( 12 , 0 ) , iOS ( 15 , 0 ) ]
921
- [ NoMacCatalyst ]
918
+ [ NoWatch , NoTV , Mac ( 12 , 0 ) , iOS ( 15 , 0 ) , MacCatalyst ( 15 , 0 ) ]
922
919
[ Export ( "isPresentingFriendRequestViewController" ) ]
923
920
bool IsPresentingFriendRequestViewController { get ; }
924
921
@@ -1160,6 +1157,10 @@ interface GKMatch {
1160
1157
[ Export ( "disconnect" ) ]
1161
1158
void Disconnect ( ) ;
1162
1159
1160
+ [ Deprecated ( PlatformName . iOS , 18 , 0 , message : "No longer supported." ) ]
1161
+ [ Deprecated ( PlatformName . MacCatalyst , 18 , 0 , message : "No longer supported." ) ]
1162
+ [ Deprecated ( PlatformName . TvOS , 18 , 0 , message : "No longer supported." ) ]
1163
+ [ Deprecated ( PlatformName . MacOSX , 15 , 0 , message : "No longer supported." ) ]
1163
1164
[ Export ( "voiceChatWithName:" ) ]
1164
1165
[ return : NullAllowed ]
1165
1166
GKVoiceChat VoiceChatWithName ( string name ) ;
@@ -1254,6 +1255,10 @@ interface GKMatchDelegate {
1254
1255
void DataReceivedForRecipient ( GKMatch match , NSData data , GKPlayer recipient , GKPlayer player ) ;
1255
1256
}
1256
1257
1258
+ [ Deprecated ( PlatformName . iOS , 18 , 0 , message : "No longer supported." ) ]
1259
+ [ Deprecated ( PlatformName . MacCatalyst , 18 , 0 , message : "No longer supported." ) ]
1260
+ [ Deprecated ( PlatformName . TvOS , 18 , 0 , message : "No longer supported." ) ]
1261
+ [ Deprecated ( PlatformName . MacOSX , 15 , 0 , message : "No longer supported." ) ]
1257
1262
[ NoWatch ]
1258
1263
[ MacCatalyst ( 13 , 1 ) ]
1259
1264
[ BaseType ( typeof ( NSObject ) ) ]
@@ -1520,7 +1525,7 @@ interface GKMatchmaker {
1520
1525
[ TV ( 17 , 2 ) , Mac ( 14 , 2 ) , iOS ( 17 , 2 ) , MacCatalyst ( 17 , 2 ) ]
1521
1526
[ Async ]
1522
1527
[ Export ( "findMatchedPlayers:withCompletionHandler:" ) ]
1523
- void FindMatchedPlayers ( GKMatchRequest request , [ NullAllowed ] Action < GKMatchedPlayers , NSError > completionHandler ) ;
1528
+ void FindMatchedPlayers ( GKMatchRequest request , Action < GKMatchedPlayers , NSError > completionHandler ) ;
1524
1529
1525
1530
// Not truly an [Async] method since the handler can be called multiple times, for each player found
1526
1531
[ MacCatalyst ( 13 , 1 ) ]
@@ -2525,26 +2530,36 @@ interface GKGameCenterViewController
2525
2530
[ Export ( "initWithNibName:bundle:" ) ]
2526
2531
NativeHandle Constructor ( [ NullAllowed ] string nibNameOrNull , [ NullAllowed ] NSBundle nibBundleOrNull ) ;
2527
2532
2528
- [ TV ( 14 , 0 ) , NoWatch , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2533
+ [ TV ( 14 , 0 ) , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2529
2534
[ MacCatalyst ( 14 , 0 ) ]
2530
2535
[ Export ( "initWithLeaderboardID:playerScope:timeScope:" ) ]
2531
2536
NativeHandle Constructor ( string leaderboardId , GKLeaderboardPlayerScope playerScope , GKLeaderboardTimeScope timeScope ) ;
2532
2537
2533
- [ TV ( 14 , 0 ) , NoWatch , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2538
+ [ TV ( 14 , 0 ) , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2534
2539
[ MacCatalyst ( 14 , 0 ) ]
2535
2540
[ Export ( "initWithLeaderboard:playerScope:" ) ]
2536
2541
NativeHandle Constructor ( GKLeaderboard leaderboard , GKLeaderboardPlayerScope playerScope ) ;
2537
2542
2538
- [ TV ( 14 , 0 ) , NoWatch , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2543
+ [ TV ( 14 , 0 ) , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2539
2544
[ MacCatalyst ( 14 , 0 ) ]
2540
2545
[ Export ( "initWithAchievementID:" ) ]
2541
- NativeHandle Constructor ( string achievementId ) ;
2546
+ [ Internal ]
2547
+ NativeHandle _InitWithAchievementId ( string achievementId ) ;
2542
2548
2543
- [ TV ( 14 , 0 ) , NoWatch , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2549
+ [ TV ( 14 , 0 ) , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
2544
2550
[ MacCatalyst ( 14 , 0 ) ]
2545
2551
[ Export ( "initWithState:" ) ]
2546
2552
NativeHandle Constructor ( GKGameCenterViewControllerState state ) ;
2547
2553
2554
+ [ TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
2555
+ [ Export ( "initWithLeaderboardSetID:" ) ]
2556
+ [ Internal ]
2557
+ NativeHandle _InitWithLeaderboardSetId ( string leaderboardSetId ) ;
2558
+
2559
+ [ TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
2560
+ [ Export ( "initWithPlayer:" ) ]
2561
+ NativeHandle Constructor ( GKPlayer player ) ;
2562
+
2548
2563
[ Export ( "gameCenterDelegate" , ArgumentSemantic . Weak ) , NullAllowed ]
2549
2564
NSObject WeakDelegate { get ; set ; }
2550
2565
@@ -3110,6 +3125,22 @@ interface GKAccessPoint {
3110
3125
3111
3126
[ Export ( "triggerAccessPointWithState:handler:" ) ]
3112
3127
void TriggerAccessPoint ( GKGameCenterViewControllerState state , Action handler ) ;
3128
+
3129
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
3130
+ [ Export ( "triggerAccessPointWithAchievementID:handler:" ) ]
3131
+ void TriggerAccessPointWithAchievementId ( string achievementId , [ NullAllowed ] Action handler ) ;
3132
+
3133
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
3134
+ [ Export ( "triggerAccessPointWithLeaderboardSetID:handler:" ) ]
3135
+ void TriggerAccessPointWithLeaderboardSetId ( string leaderboardSetId , [ NullAllowed ] Action handler ) ;
3136
+
3137
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
3138
+ [ Export ( "triggerAccessPointWithLeaderboardID:playerScope:timeScope:handler:" ) ]
3139
+ void TriggerAccessPoint ( string leaderboardId , GKLeaderboardPlayerScope playerScope , GKLeaderboardTimeScope timeScope , [ NullAllowed ] Action handler ) ;
3140
+
3141
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
3142
+ [ Export ( "triggerAccessPointWithPlayer:handler:" ) ]
3143
+ void TriggerAccessPoint ( GKPlayer player , [ NullAllowed ] Action handler ) ;
3113
3144
}
3114
3145
3115
3146
[ Watch ( 7 , 0 ) , TV ( 14 , 0 ) , Mac ( 11 , 0 ) , iOS ( 14 , 0 ) ]
@@ -3120,9 +3151,6 @@ interface GKLeaderboardEntry {
3120
3151
[ Export ( "player" , ArgumentSemantic . Strong ) ]
3121
3152
GKPlayer Player { get ; }
3122
3153
3123
- #if false
3124
- // Some APIs missing on iOS, tvOS, watchOS as of Xcode 12 beta 3 - https://github.com/xamarin/maccore/issues/2269
3125
- // disabled since the selectors don't respond on macOS 11.0
3126
3154
[ Export ( "rank" ) ]
3127
3155
nint Rank { get ; }
3128
3156
@@ -3137,7 +3165,6 @@ interface GKLeaderboardEntry {
3137
3165
3138
3166
[ Export ( "date" , ArgumentSemantic . Strong ) ]
3139
3167
NSDate Date { get ; }
3140
- #endif
3141
3168
3142
3169
[ NoWatch ] // header lists watch as supported, but UIViewController is not available on Watch!
3143
3170
[ MacCatalyst ( 13 , 1 ) ]
0 commit comments