generator-diff/generator.diff (original) (raw)
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
index 0f8bb2f..486de40 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3c92423853bbb5bc8310e9f1cb6e3dbffcb3a18f")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+73996db3ad36be9af978d743ce6d4fa17bd8203c")]
[assembly: System.Reflection.AssemblyProductAttribute("bgen")]
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
index 69bfe81..1509b06 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
@@ -1 +1 @@
\ No newline at end of file
\ No newline at end of file
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKAchievement.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKAchievement.g.cs
index db8a566..8529013 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKAchievement.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKAchievement.g.cs
@@ -149,6 +149,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -175,6 +179,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -188,6 +196,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -228,6 +240,63 @@ namespace GameKit {
CFString.ReleaseNative (nsmessage);
return ret!;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::UIKit.UIApplication.EnsureUIThread ();
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
#endif
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
@@ -664,6 +733,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::UIKit.UIViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKAchievementDescription.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKAchievementDescription.g.cs
index 1f9b4e4..3b649ab 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKAchievementDescription.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKAchievementDescription.g.cs
@@ -284,6 +284,28 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
public virtual NSNumber? RarityPercent {
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::UIKit.UIApplication.EnsureUIThread ();
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("rarityPercent")))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rarityPercent")))!;
}
return ret!;
#endif
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKBasePlayer.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKBasePlayer.g.cs
index 5abb372..430a7e7 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKBasePlayer.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKBasePlayer.g.cs
@@ -96,9 +96,9 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [ObsoletedOSPlatform ("ios16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("tvos16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("maccatalyst16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("ios13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("tvos13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("macos10.15", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKLeaderboardEntry.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKLeaderboardEntry.g.cs
index dab4c90..81b3971 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKLeaderboardEntry.g.cs
@@ -78,6 +78,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -107,6 +111,10 @@ namespace GameKit {
#endif
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -120,6 +128,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -132,6 +144,62 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::UIKit.UIApplication.EnsureUIThread ();
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
#endif
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKNotificationBanner.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKNotificationBanner.g.cs
index c6f9062..43ddf63 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKNotificationBanner.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKNotificationBanner.g.cs
@@ -51,6 +51,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("macos14.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("tvos16.1", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("maccatalyst17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKTurnBasedEventListener.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKTurnBasedEventListener.g.cs
index 7190606..e154376 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKTurnBasedEventListener.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKTurnBasedEventListener.g.cs
@@ -71,6 +71,7 @@ namespace GameKit {
[ObsoletedOSPlatform ("ios8.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [ObsoletedOSPlatform ("macos10.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("ios")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static void DidRequestMatchWithPlayers (this IGKTurnBasedEventListener This, GKPlayer player, string[] playerIDsToInvite)
@@ -215,6 +216,7 @@ namespace GameKit {
[ObsoletedOSPlatform ("ios8.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [ObsoletedOSPlatform ("macos10.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("ios")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
diff --git a/old/dotnet/ios/generated-sources/GameKit/GKVoiceChat.g.cs b/new/dotnet/ios/generated-sources/GameKit/GKVoiceChat.g.cs
index 0ee35cb..aee3c3b 100644
--- a/old/dotnet/ios/generated-sources/GameKit/GKVoiceChat.g.cs
+++ b/new/dotnet/ios/generated-sources/GameKit/GKVoiceChat.g.cs
@@ -266,6 +266,25 @@ namespace GameKit {
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V106))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
NativeHandle ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
} else {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V106.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
index 97f1653..897d32c 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -9083,6 +9083,60 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
[Preserve (Conditional = true)]
[UnmanagedCallersOnly]
internal static unsafe void Invoke (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
delegate* unmanaged<IntPtr, NativeHandle, byte, NativeHandle, void> trampoline = &Invoke;
return new BlockLiteral (trampoline, callback, typeof (SDGKChallengeComposeHandler2), nameof (Invoke));
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::UIKit.UIViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[]? sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, NativeHandle achivements, NativeHandle error);
//
diff --git a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
index cc8e19c..0296d98 100644
--- a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
@@ -306,6 +306,7 @@ namespace GameKit {
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKCategoryHandler (String[] categories, String[] titles, NSError error);
public delegate void GKChallengeComposeHandler (UIViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (UIViewController composeController, bool issuedChallenge, GameKit.GKPlayer[]? sentPlayers);
public delegate bool GKChallengePredicate (GameKit.GKChallenge challenge);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, IntPtr totalPlayerCount, NSError error);
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKAchievement.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKAchievement.g.cs
index 26e4d12..261a00a 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKAchievement.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKAchievement.g.cs
@@ -149,6 +149,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -175,6 +179,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -188,6 +196,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -228,6 +240,59 @@ namespace GameKit {
CFString.ReleaseNative (nsmessage);
return ret!;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
global::UIKit.UIApplication.EnsureUIThread ();
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
@@ -664,6 +729,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::UIKit.UIViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKAchievementDescription.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKAchievementDescription.g.cs
index cab0846..738b652 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKAchievementDescription.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKAchievementDescription.g.cs
@@ -284,6 +284,24 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
public virtual NSNumber? RarityPercent {
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("rarityPercent")))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rarityPercent")))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKBasePlayer.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKBasePlayer.g.cs
index 3a71ba3..1b9f02d 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKBasePlayer.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKBasePlayer.g.cs
@@ -96,9 +96,9 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [ObsoletedOSPlatform ("ios16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("tvos16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("maccatalyst16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("ios13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("tvos13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("macos10.15", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKLeaderboardEntry.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKLeaderboardEntry.g.cs
index 23f27ab..1ec8de4 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKLeaderboardEntry.g.cs
@@ -72,6 +72,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -97,6 +101,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -110,6 +118,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -122,6 +134,58 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
global::UIKit.UIApplication.EnsureUIThread ();
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKNotificationBanner.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKNotificationBanner.g.cs
index c1aae34..362dd3b 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKNotificationBanner.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKNotificationBanner.g.cs
@@ -51,6 +51,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("macos14.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("tvos16.1", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("maccatalyst17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKTurnBasedEventListener.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKTurnBasedEventListener.g.cs
index 1817f53..d676b60 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKTurnBasedEventListener.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKTurnBasedEventListener.g.cs
@@ -71,6 +71,7 @@ namespace GameKit {
[ObsoletedOSPlatform ("ios8.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [ObsoletedOSPlatform ("macos10.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("ios")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static void DidRequestMatchWithPlayers (this IGKTurnBasedEventListener This, GKPlayer player, string[] playerIDsToInvite)
@@ -215,6 +216,7 @@ namespace GameKit {
[ObsoletedOSPlatform ("ios8.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [ObsoletedOSPlatform ("macos10.0", "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[SupportedOSPlatform ("ios")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
diff --git a/old/dotnet/maccatalyst/generated-sources/GameKit/GKVoiceChat.g.cs b/new/dotnet/maccatalyst/generated-sources/GameKit/GKVoiceChat.g.cs
index ef41176..dc80107 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameKit/GKVoiceChat.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameKit/GKVoiceChat.g.cs
@@ -266,6 +266,25 @@ namespace GameKit {
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V96))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
NativeHandle ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
} else {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V96.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
index ce168e3..b02f9e2 100644
--- a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -8444,6 +8444,60 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
[Preserve (Conditional = true)]
[UnmanagedCallersOnly]
internal static unsafe void Invoke (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
delegate* unmanaged<IntPtr, NativeHandle, byte, NativeHandle, void> trampoline = &Invoke;
return new BlockLiteral (trampoline, callback, typeof (SDGKChallengeComposeHandler2), nameof (Invoke));
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::UIKit.UIViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[]? sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, NativeHandle achivements, NativeHandle error);
//
diff --git a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
index 125397f..485a97c 100644
--- a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
@@ -287,6 +287,7 @@ namespace GameKit {
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKCategoryHandler (String[] categories, String[] titles, NSError error);
public delegate void GKChallengeComposeHandler (UIViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (UIViewController composeController, bool issuedChallenge, GameKit.GKPlayer[]? sentPlayers);
public delegate bool GKChallengePredicate (GameKit.GKChallenge challenge);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, IntPtr totalPlayerCount, NSError error);
diff --git a/old/dotnet/macos/generated-sources/GameKit/GKAchievement.g.cs b/new/dotnet/macos/generated-sources/GameKit/GKAchievement.g.cs
index 88c63e5..ba62381 100644
--- a/old/dotnet/macos/generated-sources/GameKit/GKAchievement.g.cs
+++ b/new/dotnet/macos/generated-sources/GameKit/GKAchievement.g.cs
@@ -50,6 +50,9 @@ namespace GameKit {
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public unsafe partial class GKAchievement : NSObject, INSCoding, INSSecureCoding {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_Completion_X = "challengeComposeControllerWithMessage:players:completion:";
static readonly NativeHandle selChallengeComposeControllerWithMessage_Players_Completion_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_CompletionHandler_X = "challengeComposeControllerWithMessage:players:completionHandler:";
static readonly NativeHandle selChallengeComposeControllerWithMessage_Players_CompletionHandler_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completionHandler:");
@@ -185,6 +188,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -210,6 +217,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -223,6 +234,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -235,6 +250,58 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::AppKit.NSViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::AppKit.NSViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
@@ -634,6 +701,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::AppKit.NSViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::AppKit.NSViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::AppKit.NSViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/dotnet/macos/generated-sources/GameKit/GKAchievementDescription.g.cs b/new/dotnet/macos/generated-sources/GameKit/GKAchievementDescription.g.cs
index 78880d8..f7270b0 100644
--- a/old/dotnet/macos/generated-sources/GameKit/GKAchievementDescription.g.cs
+++ b/new/dotnet/macos/generated-sources/GameKit/GKAchievementDescription.g.cs
@@ -90,6 +90,9 @@ namespace GameKit {
const string selPlaceholderCompletedAchievementImageX = "placeholderCompletedAchievementImage";
static readonly NativeHandle selPlaceholderCompletedAchievementImageXHandle = Selector.GetHandle ("placeholderCompletedAchievementImage");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selRarityPercentX = "rarityPercent";
static readonly NativeHandle selRarityPercentXHandle = Selector.GetHandle ("rarityPercent");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTitleX = "title";
static readonly NativeHandle selTitleXHandle = Selector.GetHandle ("title");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -311,6 +314,23 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
public virtual NSNumber? RarityPercent {
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selRarityPercentXHandle))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selRarityPercentXHandle))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/dotnet/macos/generated-sources/GameKit/GKBasePlayer.g.cs b/new/dotnet/macos/generated-sources/GameKit/GKBasePlayer.g.cs
index 0a63f4c..f790e78 100644
--- a/old/dotnet/macos/generated-sources/GameKit/GKBasePlayer.g.cs
+++ b/new/dotnet/macos/generated-sources/GameKit/GKBasePlayer.g.cs
@@ -95,9 +95,9 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [ObsoletedOSPlatform ("ios16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("tvos16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("maccatalyst16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("ios13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("tvos13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("macos10.15", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
diff --git a/old/dotnet/macos/generated-sources/GameKit/GKLeaderboardEntry.g.cs b/new/dotnet/macos/generated-sources/GameKit/GKLeaderboardEntry.g.cs
index b764ae6..c20f94d 100644
--- a/old/dotnet/macos/generated-sources/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/dotnet/macos/generated-sources/GameKit/GKLeaderboardEntry.g.cs
@@ -50,6 +50,9 @@ namespace GameKit {
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
public unsafe partial class GKLeaderboardEntry : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_Completion_X = "challengeComposeControllerWithMessage:players:completion:";
static readonly NativeHandle selChallengeComposeControllerWithMessage_Players_Completion_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_CompletionHandler_X = "challengeComposeControllerWithMessage:players:completionHandler:";
static readonly NativeHandle selChallengeComposeControllerWithMessage_Players_CompletionHandler_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completionHandler:");
@@ -73,6 +76,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -97,6 +104,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -110,6 +121,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -122,6 +137,57 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::AppKit.NSViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::AppKit.NSViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/macos/generated-sources/GameKit/GKNotificationBanner.g.cs b/new/dotnet/macos/generated-sources/GameKit/GKNotificationBanner.g.cs
index f050166..80313b0 100644
--- a/old/dotnet/macos/generated-sources/GameKit/GKNotificationBanner.g.cs
+++ b/new/dotnet/macos/generated-sources/GameKit/GKNotificationBanner.g.cs
@@ -46,6 +46,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("macos14.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("tvos16.1", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("maccatalyst17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
diff --git a/old/dotnet/macos/generated-sources/GameKit/GKVoiceChat.g.cs b/new/dotnet/macos/generated-sources/GameKit/GKVoiceChat.g.cs
index 147d219..0c7df89 100644
--- a/old/dotnet/macos/generated-sources/GameKit/GKVoiceChat.g.cs
+++ b/new/dotnet/macos/generated-sources/GameKit/GKVoiceChat.g.cs
@@ -66,6 +66,9 @@ namespace GameKit {
const string selPlayerStateUpdateHandlerX = "playerStateUpdateHandler";
static readonly NativeHandle selPlayerStateUpdateHandlerXHandle = Selector.GetHandle ("playerStateUpdateHandler");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPlayerVoiceChatStateDidChangeHandlerX = "playerVoiceChatStateDidChangeHandler";
static readonly NativeHandle selPlayerVoiceChatStateDidChangeHandlerXHandle = Selector.GetHandle ("playerVoiceChatStateDidChangeHandler");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPlayersX = "players";
static readonly NativeHandle selPlayersXHandle = Selector.GetHandle ("players");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -293,6 +296,24 @@ namespace GameKit {
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V99))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
NativeHandle ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selPlayerVoiceChatStateDidChangeHandlerXHandle);
} else {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selPlayerVoiceChatStateDidChangeHandlerXHandle);
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V99.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
index 7660892..3493c38 100644
--- a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -9898,6 +9898,62 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
[Preserve (Conditional = true)]
[UnmanagedCallersOnly]
internal static unsafe void Invoke (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
delegate* unmanaged<IntPtr, NativeHandle, byte, NativeHandle, void> trampoline = &Invoke;
return new BlockLiteral (trampoline, callback, typeof (SDGKChallengeComposeHandler2), nameof (Invoke));
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::AppKit.NSViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[] sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
if (sentPlayers is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (sentPlayers));
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, NativeHandle achivements, NativeHandle error);
//
diff --git a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
index 73b3220..5622ec2 100644
--- a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
@@ -413,6 +413,7 @@ namespace GameKit {
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKCategoryHandler (String[] categories, String[] titles, NSError error);
public delegate void GKChallengeComposeHandler (NSViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (NSViewController composeController, bool issuedChallenge, GameKit.GKPlayer[] sentPlayers);
public delegate bool GKChallengePredicate (GameKit.GKChallenge challenge);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, IntPtr totalPlayerCount, NSError error);
diff --git a/old/dotnet/tvos/generated-sources/GameKit/GKAchievement.g.cs b/new/dotnet/tvos/generated-sources/GameKit/GKAchievement.g.cs
index 30cb0a7..34164a9 100644
--- a/old/dotnet/tvos/generated-sources/GameKit/GKAchievement.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameKit/GKAchievement.g.cs
@@ -141,6 +141,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -167,6 +171,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -180,6 +188,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
@@ -192,6 +204,59 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
global::UIKit.UIApplication.EnsureUIThread ();
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
@@ -480,6 +545,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::UIKit.UIViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/dotnet/tvos/generated-sources/GameKit/GKAchievementDescription.g.cs b/new/dotnet/tvos/generated-sources/GameKit/GKAchievementDescription.g.cs
index cb46410..dc04f7a 100644
--- a/old/dotnet/tvos/generated-sources/GameKit/GKAchievementDescription.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameKit/GKAchievementDescription.g.cs
@@ -276,6 +276,24 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
public virtual NSNumber? RarityPercent {
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("rarityPercent")))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rarityPercent")))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/dotnet/tvos/generated-sources/GameKit/GKBasePlayer.g.cs b/new/dotnet/tvos/generated-sources/GameKit/GKBasePlayer.g.cs
index c63b409..5795947 100644
--- a/old/dotnet/tvos/generated-sources/GameKit/GKBasePlayer.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameKit/GKBasePlayer.g.cs
@@ -88,9 +88,9 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [ObsoletedOSPlatform ("ios16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("tvos16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [ObsoletedOSPlatform ("maccatalyst16.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("ios13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("tvos13.0", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("maccatalyst13.1", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[ObsoletedOSPlatform ("macos10.15", "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
diff --git a/old/dotnet/tvos/generated-sources/GameKit/GKLeaderboardEntry.g.cs b/new/dotnet/tvos/generated-sources/GameKit/GKLeaderboardEntry.g.cs
index 254c6ef..8771730 100644
--- a/old/dotnet/tvos/generated-sources/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameKit/GKLeaderboardEntry.g.cs
@@ -64,6 +64,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -89,6 +93,10 @@ namespace GameKit {
return ret!;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -102,6 +110,10 @@ namespace GameKit {
return tcs.Task;
}
[SupportedOSPlatform ("maccatalyst14.0")]
[ObsoletedOSPlatform ("ios17.0")]
[ObsoletedOSPlatform ("tvos17.0")]
[ObsoletedOSPlatform ("maccatalyst17.0")]
[ObsoletedOSPlatform ("macos14.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("tvos14.0")]
@@ -114,6 +126,58 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
global::UIKit.UIApplication.EnsureUIThread ();
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[SupportedOSPlatform ("tvos17.0")]
[SupportedOSPlatform ("ios17.0")]
[SupportedOSPlatform ("maccatalyst17.0")]
[SupportedOSPlatform ("macos14.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/tvos/generated-sources/GameKit/GKNotificationBanner.g.cs b/new/dotnet/tvos/generated-sources/GameKit/GKNotificationBanner.g.cs
index 7d56cde..5e2d98c 100644
--- a/old/dotnet/tvos/generated-sources/GameKit/GKNotificationBanner.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameKit/GKNotificationBanner.g.cs
@@ -43,6 +43,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[SupportedOSPlatform ("maccatalyst")]
[ObsoletedOSPlatform ("ios17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("macos14.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("tvos16.1", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[ObsoletedOSPlatform ("maccatalyst17.0", "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
diff --git a/old/dotnet/tvos/generated-sources/GameKit/GKVoiceChat.g.cs b/new/dotnet/tvos/generated-sources/GameKit/GKVoiceChat.g.cs
index 0f1f6b5..4906bb4 100644
--- a/old/dotnet/tvos/generated-sources/GameKit/GKVoiceChat.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameKit/GKVoiceChat.g.cs
@@ -181,6 +181,25 @@ namespace GameKit {
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V68))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
NativeHandle ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
} else {
ret = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V68.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
index 1871810..2ac66d6 100644
--- a/old/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -6076,6 +6076,60 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
[Preserve (Conditional = true)]
[UnmanagedCallersOnly]
internal static unsafe void Invoke (IntPtr block, NativeHandle composeController, byte issuedChallenge, NativeHandle sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
delegate* unmanaged<IntPtr, NativeHandle, byte, NativeHandle, void> trampoline = &Invoke;
return new BlockLiteral (trampoline, callback, typeof (SDGKChallengeComposeHandler2), nameof (Invoke));
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::UIKit.UIViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[]? sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, NativeHandle achivements, NativeHandle error);
//
diff --git a/old/dotnet/tvos/generated-sources/SupportDelegates.g.cs b/new/dotnet/tvos/generated-sources/SupportDelegates.g.cs
index a1deeb8..44a5901 100644
--- a/old/dotnet/tvos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/tvos/generated-sources/SupportDelegates.g.cs
@@ -200,6 +200,7 @@ namespace GameKit {
#nullable enable
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKChallengeComposeHandler (UIViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (UIViewController composeController, bool issuedChallenge, GameKit.GKPlayer[]? sentPlayers);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, IntPtr totalPlayerCount, NSError error);
public delegate void GKEntriesForPlayersHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, NSError error);
diff --git a/old/ios/native/GameKit/GKAchievement.g.cs b/new/ios/native/GameKit/GKAchievement.g.cs
index 8cb21aa..2394de9 100644
--- a/old/ios/native/GameKit/GKAchievement.g.cs
+++ b/new/ios/native/GameKit/GKAchievement.g.cs
@@ -137,6 +137,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeController (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -160,6 +164,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players)
{
@@ -170,6 +178,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
@@ -206,6 +218,66 @@ namespace GameKit {
CFString.ReleaseNative (nsmessage);
return ret!;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::UIKit.UIApplication.EnsureUIThread ();
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
#endif
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void EncodeTo (NSCoder encoder)
@@ -616,6 +688,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::UIKit.UIViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/ios/native/GameKit/GKAchievementDescription.g.cs b/new/ios/native/GameKit/GKAchievementDescription.g.cs
index a9b6e7d..cb45c87 100644
--- a/old/ios/native/GameKit/GKAchievementDescription.g.cs
+++ b/new/ios/native/GameKit/GKAchievementDescription.g.cs
@@ -271,6 +271,34 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual NSNumber? RarityPercent {
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::UIKit.UIApplication.EnsureUIThread ();
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("rarityPercent")))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rarityPercent")))!;
}
return ret!;
#endif
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/ios/native/GameKit/GKBasePlayer.g.cs b/new/ios/native/GameKit/GKBasePlayer.g.cs
index 8190948..9d21b08 100644
--- a/old/ios/native/GameKit/GKBasePlayer.g.cs
+++ b/new/ios/native/GameKit/GKBasePlayer.g.cs
@@ -91,14 +91,16 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
public virtual string? PlayerID {
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Export ("playerID", ArgumentSemantic.Retain)]
get {
diff --git a/old/ios/native/GameKit/GKLeaderboardEntry.g.cs b/new/ios/native/GameKit/GKLeaderboardEntry.g.cs
index 8e3b029..c15c49b 100644
--- a/old/ios/native/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/ios/native/GameKit/GKLeaderboardEntry.g.cs
@@ -78,6 +78,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeController (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -104,6 +108,10 @@ namespace GameKit {
#endif
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players)
{
@@ -114,6 +122,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
@@ -123,6 +135,65 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
global::UIKit.UIApplication.EnsureUIThread ();
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
#endif
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/ios/native/GameKit/GKNotificationBanner.g.cs b/new/ios/native/GameKit/GKNotificationBanner.g.cs
index 5fce53a..0e78872 100644
--- a/old/ios/native/GameKit/GKNotificationBanner.g.cs
+++ b/new/ios/native/GameKit/GKNotificationBanner.g.cs
@@ -50,6 +50,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacOSX, 14,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.TvOS, 16,1, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacCatalyst, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
public unsafe partial class GKNotificationBanner : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("GKNotificationBanner");
diff --git a/old/ios/native/GameKit/GKTurnBasedEventListener.g.cs b/new/ios/native/GameKit/GKTurnBasedEventListener.g.cs
index 492e898..9e03dbc 100644
--- a/old/ios/native/GameKit/GKTurnBasedEventListener.g.cs
+++ b/new/ios/native/GameKit/GKTurnBasedEventListener.g.cs
@@ -65,6 +65,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static void DidRequestMatchWithPlayers (this IGKTurnBasedEventListener This, GKPlayer player, string[] playerIDsToInvite)
{
@@ -193,6 +194,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
{
diff --git a/old/ios/native/GameKit/GKVoiceChat.g.cs b/new/ios/native/GameKit/GKVoiceChat.g.cs
index aee3d6e..c5c67a0 100644
--- a/old/ios/native/GameKit/GKVoiceChat.g.cs
+++ b/new/ios/native/GameKit/GKVoiceChat.g.cs
@@ -253,6 +253,21 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V106))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
IntPtr ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
} else {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V106.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/ios/native/ObjCRuntime/Trampolines.g.cs b/new/ios/native/ObjCRuntime/Trampolines.g.cs
index 8fef67d..1401f74 100644
--- a/old/ios/native/ObjCRuntime/Trampolines.g.cs
+++ b/new/ios/native/ObjCRuntime/Trampolines.g.cs
@@ -9428,6 +9428,61 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
unsafe static internal readonly DGKChallengeComposeHandler2 Handler = Invoke;
[MonoPInvokeCallback (typeof (DGKChallengeComposeHandler2))]
internal static unsafe void Invoke (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
var block = new BlockLiteral ();
block.SetupBlockUnsafe (Handler, callback);
return block;
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::UIKit.UIViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[]? sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, IntPtr achivements, IntPtr error);
//
diff --git a/old/ios/native/SupportDelegates.g.cs b/new/ios/native/SupportDelegates.g.cs
index 87f28ea..e9ea6da 100644
--- a/old/ios/native/SupportDelegates.g.cs
+++ b/new/ios/native/SupportDelegates.g.cs
@@ -311,6 +311,7 @@ namespace GameKit {
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKCategoryHandler (String[] categories, String[] titles, NSError error);
public delegate void GKChallengeComposeHandler (UIViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (UIViewController composeController, bool issuedChallenge, GameKit.GKPlayer[]? sentPlayers);
public delegate bool GKChallengePredicate (GameKit.GKChallenge challenge);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, nint totalPlayerCount, NSError error);
diff --git a/old/mac/full/GameKit/GKAchievement.g.cs b/new/mac/full/GameKit/GKAchievement.g.cs
index a0da2e4..2d6cecc 100644
--- a/old/mac/full/GameKit/GKAchievement.g.cs
+++ b/new/mac/full/GameKit/GKAchievement.g.cs
@@ -45,6 +45,9 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKAchievement", true)]
public unsafe partial class GKAchievement : NSObject, INSCoding, INSSecureCoding {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_Completion_X = "challengeComposeControllerWithMessage:players:completion:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_Completion_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_CompletionHandler_X = "challengeComposeControllerWithMessage:players:completionHandler:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_CompletionHandler_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completionHandler:");
@@ -176,6 +179,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeController (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -198,6 +205,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players)
{
@@ -208,6 +219,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players, out global::AppKit.NSViewController result)
{
@@ -217,6 +232,61 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::AppKit.NSViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::AppKit.NSViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void EncodeTo (NSCoder encoder)
@@ -588,6 +658,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::AppKit.NSViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::AppKit.NSViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::AppKit.NSViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/mac/full/GameKit/GKAchievementDescription.g.cs b/new/mac/full/GameKit/GKAchievementDescription.g.cs
index 863d436..af7e701 100644
--- a/old/mac/full/GameKit/GKAchievementDescription.g.cs
+++ b/new/mac/full/GameKit/GKAchievementDescription.g.cs
@@ -85,6 +85,9 @@ namespace GameKit {
const string selPlaceholderCompletedAchievementImageX = "placeholderCompletedAchievementImage";
static readonly IntPtr selPlaceholderCompletedAchievementImageXHandle = Selector.GetHandle ("placeholderCompletedAchievementImage");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selRarityPercentX = "rarityPercent";
static readonly IntPtr selRarityPercentXHandle = Selector.GetHandle ("rarityPercent");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTitleX = "title";
static readonly IntPtr selTitleXHandle = Selector.GetHandle ("title");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -298,6 +301,29 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual NSNumber? RarityPercent {
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selRarityPercentXHandle))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selRarityPercentXHandle))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/mac/full/GameKit/GKBasePlayer.g.cs b/new/mac/full/GameKit/GKBasePlayer.g.cs
index 5fbba58..607d106 100644
--- a/old/mac/full/GameKit/GKBasePlayer.g.cs
+++ b/new/mac/full/GameKit/GKBasePlayer.g.cs
@@ -90,14 +90,16 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
public virtual string? PlayerID {
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Export ("playerID", ArgumentSemantic.Retain)]
get {
diff --git a/old/mac/full/GameKit/GKLeaderboardEntry.g.cs b/new/mac/full/GameKit/GKLeaderboardEntry.g.cs
index 95c4e73..2691f1d 100644
--- a/old/mac/full/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/mac/full/GameKit/GKLeaderboardEntry.g.cs
@@ -50,6 +50,9 @@ namespace GameKit {
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class GKLeaderboardEntry : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_Completion_X = "challengeComposeControllerWithMessage:players:completion:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_Completion_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_CompletionHandler_X = "challengeComposeControllerWithMessage:players:completionHandler:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_CompletionHandler_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completionHandler:");
@@ -73,6 +76,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeController (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -94,6 +101,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players)
{
@@ -104,6 +115,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players, out global::AppKit.NSViewController result)
{
@@ -113,6 +128,60 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::AppKit.NSViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::AppKit.NSViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/mac/full/GameKit/GKLocalPlayerListener.g.cs b/new/mac/full/GameKit/GKLocalPlayerListener.g.cs
index 4350eb8..02bb74e 100644
--- a/old/mac/full/GameKit/GKLocalPlayerListener.g.cs
+++ b/new/mac/full/GameKit/GKLocalPlayerListener.g.cs
@@ -135,6 +135,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
{
diff --git a/old/mac/full/GameKit/GKNotificationBanner.g.cs b/new/mac/full/GameKit/GKNotificationBanner.g.cs
index 7c67f52..60d3ec9 100644
--- a/old/mac/full/GameKit/GKNotificationBanner.g.cs
+++ b/new/mac/full/GameKit/GKNotificationBanner.g.cs
@@ -45,6 +45,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacOSX, 14,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.TvOS, 16,1, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacCatalyst, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
public unsafe partial class GKNotificationBanner : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selShowBannerWithTitle_Message_CompletionHandler_X = "showBannerWithTitle:message:completionHandler:";
diff --git a/old/mac/full/GameKit/GKTurnBasedEventListener.g.cs b/new/mac/full/GameKit/GKTurnBasedEventListener.g.cs
index 3d6c748..2606620 100644
--- a/old/mac/full/GameKit/GKTurnBasedEventListener.g.cs
+++ b/new/mac/full/GameKit/GKTurnBasedEventListener.g.cs
@@ -60,6 +60,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static void DidRequestMatchWithPlayers (this IGKTurnBasedEventListener This, GKPlayer player, string[] playerIDsToInvite)
{
@@ -179,6 +180,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
{
diff --git a/old/mac/full/GameKit/GKVoiceChat.g.cs b/new/mac/full/GameKit/GKVoiceChat.g.cs
index 76b092c..888f9a6 100644
--- a/old/mac/full/GameKit/GKVoiceChat.g.cs
+++ b/new/mac/full/GameKit/GKVoiceChat.g.cs
@@ -62,6 +62,9 @@ namespace GameKit {
const string selPlayerStateUpdateHandlerX = "playerStateUpdateHandler";
static readonly IntPtr selPlayerStateUpdateHandlerXHandle = Selector.GetHandle ("playerStateUpdateHandler");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPlayerVoiceChatStateDidChangeHandlerX = "playerVoiceChatStateDidChangeHandler";
static readonly IntPtr selPlayerVoiceChatStateDidChangeHandlerXHandle = Selector.GetHandle ("playerVoiceChatStateDidChangeHandler");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPlayersX = "players";
static readonly IntPtr selPlayersXHandle = Selector.GetHandle ("players");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -280,6 +283,20 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V99))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
IntPtr ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPlayerVoiceChatStateDidChangeHandlerXHandle);
} else {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPlayerVoiceChatStateDidChangeHandlerXHandle);
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V99.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/mac/full/ObjCRuntime/Trampolines.g.cs b/new/mac/full/ObjCRuntime/Trampolines.g.cs
index 10e42a9..e0a300b 100644
--- a/old/mac/full/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/full/ObjCRuntime/Trampolines.g.cs
@@ -10313,6 +10313,63 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
unsafe static internal readonly DGKChallengeComposeHandler2 Handler = Invoke;
[MonoPInvokeCallback (typeof (DGKChallengeComposeHandler2))]
internal static unsafe void Invoke (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
var block = new BlockLiteral ();
block.SetupBlockUnsafe (Handler, callback);
return block;
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::AppKit.NSViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[] sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
if (sentPlayers is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (sentPlayers));
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, IntPtr achivements, IntPtr error);
//
diff --git a/old/mac/full/SupportDelegates.g.cs b/new/mac/full/SupportDelegates.g.cs
index 6c6d59f..abe6003 100644
--- a/old/mac/full/SupportDelegates.g.cs
+++ b/new/mac/full/SupportDelegates.g.cs
@@ -421,6 +421,7 @@ namespace GameKit {
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKCategoryHandler (String[] categories, String[] titles, NSError error);
public delegate void GKChallengeComposeHandler (NSViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (NSViewController composeController, bool issuedChallenge, GameKit.GKPlayer[] sentPlayers);
public delegate bool GKChallengePredicate (GameKit.GKChallenge challenge);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, nint totalPlayerCount, NSError error);
diff --git a/old/mac/mobile/GameKit/GKAchievement.g.cs b/new/mac/mobile/GameKit/GKAchievement.g.cs
index a0da2e4..2d6cecc 100644
--- a/old/mac/mobile/GameKit/GKAchievement.g.cs
+++ b/new/mac/mobile/GameKit/GKAchievement.g.cs
@@ -45,6 +45,9 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKAchievement", true)]
public unsafe partial class GKAchievement : NSObject, INSCoding, INSSecureCoding {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_Completion_X = "challengeComposeControllerWithMessage:players:completion:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_Completion_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_CompletionHandler_X = "challengeComposeControllerWithMessage:players:completionHandler:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_CompletionHandler_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completionHandler:");
@@ -176,6 +179,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeController (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -198,6 +205,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players)
{
@@ -208,6 +219,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players, out global::AppKit.NSViewController result)
{
@@ -217,6 +232,61 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::AppKit.NSViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::AppKit.NSViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void EncodeTo (NSCoder encoder)
@@ -588,6 +658,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::AppKit.NSViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::AppKit.NSViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::AppKit.NSViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/mac/mobile/GameKit/GKAchievementDescription.g.cs b/new/mac/mobile/GameKit/GKAchievementDescription.g.cs
index 863d436..af7e701 100644
--- a/old/mac/mobile/GameKit/GKAchievementDescription.g.cs
+++ b/new/mac/mobile/GameKit/GKAchievementDescription.g.cs
@@ -85,6 +85,9 @@ namespace GameKit {
const string selPlaceholderCompletedAchievementImageX = "placeholderCompletedAchievementImage";
static readonly IntPtr selPlaceholderCompletedAchievementImageXHandle = Selector.GetHandle ("placeholderCompletedAchievementImage");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selRarityPercentX = "rarityPercent";
static readonly IntPtr selRarityPercentXHandle = Selector.GetHandle ("rarityPercent");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTitleX = "title";
static readonly IntPtr selTitleXHandle = Selector.GetHandle ("title");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -298,6 +301,29 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual NSNumber? RarityPercent {
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selRarityPercentXHandle))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selRarityPercentXHandle))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/mac/mobile/GameKit/GKBasePlayer.g.cs b/new/mac/mobile/GameKit/GKBasePlayer.g.cs
index 5fbba58..607d106 100644
--- a/old/mac/mobile/GameKit/GKBasePlayer.g.cs
+++ b/new/mac/mobile/GameKit/GKBasePlayer.g.cs
@@ -90,14 +90,16 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
public virtual string? PlayerID {
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Export ("playerID", ArgumentSemantic.Retain)]
get {
diff --git a/old/mac/mobile/GameKit/GKLeaderboardEntry.g.cs b/new/mac/mobile/GameKit/GKLeaderboardEntry.g.cs
index 95c4e73..2691f1d 100644
--- a/old/mac/mobile/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/mac/mobile/GameKit/GKLeaderboardEntry.g.cs
@@ -50,6 +50,9 @@ namespace GameKit {
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class GKLeaderboardEntry : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_Completion_X = "challengeComposeControllerWithMessage:players:completion:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_Completion_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selChallengeComposeControllerWithMessage_Players_CompletionHandler_X = "challengeComposeControllerWithMessage:players:completionHandler:";
static readonly IntPtr selChallengeComposeControllerWithMessage_Players_CompletionHandler_XHandle = Selector.GetHandle ("challengeComposeControllerWithMessage:players:completionHandler:");
@@ -73,6 +76,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeController (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -94,6 +101,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players)
{
@@ -104,6 +115,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players, out global::AppKit.NSViewController result)
{
@@ -113,6 +128,60 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::AppKit.NSViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::AppKit.NSViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::AppKit.NSViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selChallengeComposeControllerWithMessage_Players_Completion_XHandle, nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::AppKit.NSViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/mac/mobile/GameKit/GKLocalPlayerListener.g.cs b/new/mac/mobile/GameKit/GKLocalPlayerListener.g.cs
index 4350eb8..02bb74e 100644
--- a/old/mac/mobile/GameKit/GKLocalPlayerListener.g.cs
+++ b/new/mac/mobile/GameKit/GKLocalPlayerListener.g.cs
@@ -135,6 +135,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
{
diff --git a/old/mac/mobile/GameKit/GKNotificationBanner.g.cs b/new/mac/mobile/GameKit/GKNotificationBanner.g.cs
index 7c67f52..60d3ec9 100644
--- a/old/mac/mobile/GameKit/GKNotificationBanner.g.cs
+++ b/new/mac/mobile/GameKit/GKNotificationBanner.g.cs
@@ -45,6 +45,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacOSX, 14,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.TvOS, 16,1, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacCatalyst, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
public unsafe partial class GKNotificationBanner : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selShowBannerWithTitle_Message_CompletionHandler_X = "showBannerWithTitle:message:completionHandler:";
diff --git a/old/mac/mobile/GameKit/GKTurnBasedEventListener.g.cs b/new/mac/mobile/GameKit/GKTurnBasedEventListener.g.cs
index 3d6c748..2606620 100644
--- a/old/mac/mobile/GameKit/GKTurnBasedEventListener.g.cs
+++ b/new/mac/mobile/GameKit/GKTurnBasedEventListener.g.cs
@@ -60,6 +60,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static void DidRequestMatchWithPlayers (this IGKTurnBasedEventListener This, GKPlayer player, string[] playerIDsToInvite)
{
@@ -179,6 +180,7 @@ namespace GameKit {
[Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 8,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
- [Deprecated (PlatformName.MacOSX, 10,0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite)
{
diff --git a/old/mac/mobile/GameKit/GKVoiceChat.g.cs b/new/mac/mobile/GameKit/GKVoiceChat.g.cs
index 76b092c..888f9a6 100644
--- a/old/mac/mobile/GameKit/GKVoiceChat.g.cs
+++ b/new/mac/mobile/GameKit/GKVoiceChat.g.cs
@@ -62,6 +62,9 @@ namespace GameKit {
const string selPlayerStateUpdateHandlerX = "playerStateUpdateHandler";
static readonly IntPtr selPlayerStateUpdateHandlerXHandle = Selector.GetHandle ("playerStateUpdateHandler");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPlayerVoiceChatStateDidChangeHandlerX = "playerVoiceChatStateDidChangeHandler";
static readonly IntPtr selPlayerVoiceChatStateDidChangeHandlerXHandle = Selector.GetHandle ("playerVoiceChatStateDidChangeHandler");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPlayersX = "players";
static readonly IntPtr selPlayersXHandle = Selector.GetHandle ("players");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -280,6 +283,20 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V99))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
IntPtr ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPlayerVoiceChatStateDidChangeHandlerXHandle);
} else {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPlayerVoiceChatStateDidChangeHandlerXHandle);
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V99.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
index 10e42a9..e0a300b 100644
--- a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
@@ -10313,6 +10313,63 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
unsafe static internal readonly DGKChallengeComposeHandler2 Handler = Invoke;
[MonoPInvokeCallback (typeof (DGKChallengeComposeHandler2))]
internal static unsafe void Invoke (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
var block = new BlockLiteral ();
block.SetupBlockUnsafe (Handler, callback);
return block;
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::AppKit.NSViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[] sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
if (sentPlayers is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (sentPlayers));
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, IntPtr achivements, IntPtr error);
//
diff --git a/old/mac/mobile/SupportDelegates.g.cs b/new/mac/mobile/SupportDelegates.g.cs
index 6c6d59f..abe6003 100644
--- a/old/mac/mobile/SupportDelegates.g.cs
+++ b/new/mac/mobile/SupportDelegates.g.cs
@@ -421,6 +421,7 @@ namespace GameKit {
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKCategoryHandler (String[] categories, String[] titles, NSError error);
public delegate void GKChallengeComposeHandler (NSViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (NSViewController composeController, bool issuedChallenge, GameKit.GKPlayer[] sentPlayers);
public delegate bool GKChallengePredicate (GameKit.GKChallenge challenge);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, nint totalPlayerCount, NSError error);
diff --git a/old/tvos/tvos/GameKit/GKAchievement.g.cs b/new/tvos/tvos/GameKit/GKAchievement.g.cs
index 03b076c..deb45d0 100644
--- a/old/tvos/tvos/GameKit/GKAchievement.g.cs
+++ b/new/tvos/tvos/GameKit/GKAchievement.g.cs
@@ -129,6 +129,10 @@ namespace GameKit {
}
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeController (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -152,6 +156,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players)
{
@@ -162,6 +170,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
@@ -171,6 +183,62 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[] players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
global::UIKit.UIApplication.EnsureUIThread ();
if (players is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (players));
var nsmessage = CFString.CreateNative (message);
var nsa_players = NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.Handle, (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
nsa_players.Dispose ();
return ret!;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[] players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[Export ("encodeWithCoder:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void EncodeTo (NSCoder encoder)
@@ -439,6 +507,18 @@ namespace GameKit {
//
// Async result classes
//
public partial class GKChallengeComposeControllerResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
public GKPlayer[] SentPlayers { get; set; }
partial void Initialize ();
public GKChallengeComposeControllerResult (global::UIKit.UIViewController composeController, bool issuedChallenge, GKPlayer[] sentPlayers) {
this.ComposeController = composeController;
this.IssuedChallenge = issuedChallenge;
this.SentPlayers = sentPlayers;
Initialize ();
}
}
public partial class GKChallengeComposeResult {
public global::UIKit.UIViewController ComposeController { get; set; }
public bool IssuedChallenge { get; set; }
diff --git a/old/tvos/tvos/GameKit/GKAchievementDescription.g.cs b/new/tvos/tvos/GameKit/GKAchievementDescription.g.cs
index b35a695..1e9b042 100644
--- a/old/tvos/tvos/GameKit/GKAchievementDescription.g.cs
+++ b/new/tvos/tvos/GameKit/GKAchievementDescription.g.cs
@@ -263,6 +263,30 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual NSNumber? RarityPercent {
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("rarityPercent")))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rarityPercent")))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/tvos/tvos/GameKit/GKBasePlayer.g.cs b/new/tvos/tvos/GameKit/GKBasePlayer.g.cs
index 4443a23..f022426 100644
--- a/old/tvos/tvos/GameKit/GKBasePlayer.g.cs
+++ b/new/tvos/tvos/GameKit/GKBasePlayer.g.cs
@@ -83,14 +83,16 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
public virtual string? PlayerID {
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Export ("playerID", ArgumentSemantic.Retain)]
get {
diff --git a/old/tvos/tvos/GameKit/GKLeaderboardEntry.g.cs b/new/tvos/tvos/GameKit/GKLeaderboardEntry.g.cs
index c94d697..04c8dc2 100644
--- a/old/tvos/tvos/GameKit/GKLeaderboardEntry.g.cs
+++ b/new/tvos/tvos/GameKit/GKLeaderboardEntry.g.cs
@@ -64,6 +64,10 @@ namespace GameKit {
[Export ("challengeComposeControllerWithMessage:players:completionHandler:")]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeController (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler))]GKChallengeComposeHandler? completionHandler)
{
@@ -86,6 +90,10 @@ namespace GameKit {
return ret!;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players)
{
@@ -96,6 +104,10 @@ namespace GameKit {
return tcs.Task;
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0)]
[Deprecated (PlatformName.TvOS, 17,0)]
[Deprecated (PlatformName.MacCatalyst, 17,0)]
[Deprecated (PlatformName.MacOSX, 14,0)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
@@ -105,6 +117,61 @@ namespace GameKit {
})!;
return tcs.Task;
}
[Export ("challengeComposeControllerWithMessage:players:completion:")]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::UIKit.UIViewController ChallengeComposeControllerWithMessage (string? message, GKPlayer[]? players, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDGKChallengeComposeHandler2))]GKChallengeComposeHandler2? completionHandler)
{
global::UIKit.UIApplication.EnsureUIThread ();
var nsmessage = CFString.CreateNative (message);
var nsa_players = players is null ? null : NSArray.FromNSObjects (players);
using var block_completionHandler = Trampolines.SDGKChallengeComposeHandler2.CreateNullableBlock (completionHandler);
BlockLiteral *block_ptr_completionHandler = null;
if (completionHandler is not null)
block_ptr_completionHandler = &block_completionHandler;
global::UIKit.UIViewController? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
} else {
ret = Runtime.GetNSObjectglobal::UIKit.UIViewController (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("challengeComposeControllerWithMessage:players:completion:"), nsmessage, nsa_players.GetHandle (), (IntPtr) block_ptr_completionHandler))!;
}
CFString.ReleaseNative (nsmessage);
if (nsa_players is not null)
nsa_players.Dispose ();
return ret!;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players)
{
var tcs = new TaskCompletionSource ();
ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
});
return tcs.Task;
}
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual Task ChallengeComposeControllerWithMessageAsync (string? message, GKPlayer[]? players, out global::UIKit.UIViewController result)
{
var tcs = new TaskCompletionSource ();
result = ChallengeComposeControllerWithMessage(message, players, (composeController_, issuedChallenge_, sentPlayers_) => {
tcs.SetResult (new GKChallengeComposeControllerResult (composeController_!, issuedChallenge_!, sentPlayers_!));
})!;
return tcs.Task;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer Player {
[Export ("player", ArgumentSemantic.Retain)]
diff --git a/old/tvos/tvos/GameKit/GKNotificationBanner.g.cs b/new/tvos/tvos/GameKit/GKNotificationBanner.g.cs
index 509b84f..e61807b 100644
--- a/old/tvos/tvos/GameKit/GKNotificationBanner.g.cs
+++ b/new/tvos/tvos/GameKit/GKNotificationBanner.g.cs
@@ -42,6 +42,10 @@ using NativeHandle = System.IntPtr;
namespace GameKit {
[Register("GKNotificationBanner", true)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Deprecated (PlatformName.iOS, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacOSX, 14,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.TvOS, 16,1, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
[Deprecated (PlatformName.MacCatalyst, 17,0, message: "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit.")]
public unsafe partial class GKNotificationBanner : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("GKNotificationBanner");
diff --git a/old/tvos/tvos/GameKit/GKVoiceChat.g.cs b/new/tvos/tvos/GameKit/GKVoiceChat.g.cs
index 46d168a..5386a54 100644
--- a/old/tvos/tvos/GameKit/GKVoiceChat.g.cs
+++ b/new/tvos/tvos/GameKit/GKVoiceChat.g.cs
@@ -165,6 +165,21 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual global::System.Action<GKPlayer, GKVoiceChatPlayerState> PlayerVoiceChatStateDidChangeHandler {
[return: DelegateProxy (typeof (ObjCRuntime.Trampolines.SDActionArity2V68))]
[Export ("playerVoiceChatStateDidChangeHandler", ArgumentSemantic.Copy)]
get {
global::UIKit.UIApplication.EnsureUIThread ();
IntPtr ret;
if (IsDirectBinding) {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
} else {
ret = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("playerVoiceChatStateDidChangeHandler"));
}
return global::ObjCRuntime.Trampolines.NIDActionArity2V68.Create (ret)!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual GKPlayer[] Players {
[Export ("players")]
get {
diff --git a/old/tvos/tvos/ObjCRuntime/Trampolines.g.cs b/new/tvos/tvos/ObjCRuntime/Trampolines.g.cs
index c106b69..dd2b6f1 100644
--- a/old/tvos/tvos/ObjCRuntime/Trampolines.g.cs
+++ b/new/tvos/tvos/ObjCRuntime/Trampolines.g.cs
@@ -6300,6 +6300,61 @@ namespace ObjCRuntime {
}
} /* class NIDGKChallengeComposeHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKChallengeComposeHandler2))]
unsafe internal delegate void DGKChallengeComposeHandler2 (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers);
//
// This class bridges native block invocations that call into C#
//
static internal class SDGKChallengeComposeHandler2 {
unsafe static internal readonly DGKChallengeComposeHandler2 Handler = Invoke;
[MonoPInvokeCallback (typeof (DGKChallengeComposeHandler2))]
internal static unsafe void Invoke (IntPtr block, IntPtr composeController, byte issuedChallenge, IntPtr sentPlayers) {
var del = BlockLiteral.GetTargetglobal::GameKit.GKChallengeComposeHandler2 (block);
if (del is not null) {
del ( Runtime.GetNSObject (composeController)!, issuedChallenge != 0, CFArray.ArrayFromHandleglobal::GameKit.GKPlayer (sentPlayers)!);
}
}
internal static unsafe BlockLiteral CreateNullableBlock (global::GameKit.GKChallengeComposeHandler2? callback)
{
if (callback is null)
return default (BlockLiteral);
return CreateBlock (callback);
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
internal static unsafe BlockLiteral CreateBlock (global::GameKit.GKChallengeComposeHandler2 callback)
{
var block = new BlockLiteral ();
block.SetupBlockUnsafe (Handler, callback);
return block;
}
} /* class SDGKChallengeComposeHandler2 */
internal sealed class NIDGKChallengeComposeHandler2 : TrampolineBlockBase {
DGKChallengeComposeHandler2 invoker;
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe NIDGKChallengeComposeHandler2 (BlockLiteral *block) : base (block)
{
invoker = block->GetDelegateForBlock ();
}
[Preserve (Conditional=true)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe static global::GameKit.GKChallengeComposeHandler2? Create (IntPtr block)
{
if (block == IntPtr.Zero)
return null;
var del = (global::GameKit.GKChallengeComposeHandler2) GetExistingManagedDelegate (block);
return del ?? new NIDGKChallengeComposeHandler2 ((BlockLiteral *) block).Invoke;
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
unsafe void Invoke (global::UIKit.UIViewController composeController, bool issuedChallenge, global::GameKit.GKPlayer[]? sentPlayers)
{
var composeController__handle__ = composeController.GetHandle ();
var nsa_sentPlayers = sentPlayers is null ? null : NSArray.FromNSObjects (sentPlayers);
invoker (BlockPointer, composeController__handle__, issuedChallenge ? (byte) 1 : (byte) 0, nsa_sentPlayers.GetHandle ());
if (nsa_sentPlayers is not null)
nsa_sentPlayers.Dispose ();
}
} /* class NIDGKChallengeComposeHandler2 */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::GameKit.GKCompletionHandler))]
unsafe internal delegate void DGKCompletionHandler (IntPtr block, IntPtr achivements, IntPtr error);
//
diff --git a/old/tvos/tvos/SupportDelegates.g.cs b/new/tvos/tvos/SupportDelegates.g.cs
index 7568907..3288378 100644
--- a/old/tvos/tvos/SupportDelegates.g.cs
+++ b/new/tvos/tvos/SupportDelegates.g.cs
@@ -204,6 +204,7 @@ namespace GameKit {
#nullable enable
public delegate void GKAchievementDescriptionHandler (GameKit.GKAchievementDescription[] descriptions, NSError error);
public delegate void GKChallengeComposeHandler (UIViewController composeController, bool issuedChallenge, String[] sentPlayerIDs);
- public delegate void GKChallengeComposeHandler2 (UIViewController composeController, bool issuedChallenge, GameKit.GKPlayer[]? sentPlayers);
public delegate void GKCompletionHandler (GameKit.GKAchievement[] achivements, NSError error);
public delegate void GKEntriesForPlayerScopeHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, nint totalPlayerCount, NSError error);
public delegate void GKEntriesForPlayersHandler (GameKit.GKLeaderboardEntry localPlayerEntry, GameKit.GKLeaderboardEntry[] entries, NSError error);
diff --git a/old/watch/watch/GameKit/GKAchievementDescription.g.cs b/new/watch/watch/GameKit/GKAchievementDescription.g.cs
index bf69272..aa4c3e4 100644
--- a/old/watch/watch/GameKit/GKAchievementDescription.g.cs
+++ b/new/watch/watch/GameKit/GKAchievementDescription.g.cs
@@ -184,6 +184,29 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual NSNumber? RarityPercent {
[Introduced (PlatformName.WatchOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("rarityPercent", ArgumentSemantic.Copy)]
get {
NSNumber? ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("rarityPercent")))!;
} else {
ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("rarityPercent")))!;
}
return ret!;
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool Replayable {
[Export ("isReplayable")]
get {
diff --git a/old/watch/watch/GameKit/GKBasePlayer.g.cs b/new/watch/watch/GameKit/GKBasePlayer.g.cs
index 24eb80c..990c23d 100644
--- a/old/watch/watch/GameKit/GKBasePlayer.g.cs
+++ b/new/watch/watch/GameKit/GKBasePlayer.g.cs
@@ -71,14 +71,16 @@ namespace GameKit {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
public virtual string? PlayerID {
- [Deprecated (PlatformName.iOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.TvOS, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
- [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.iOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.TvOS, 13,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.WatchOS, 6,0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")]
[Export ("playerID", ArgumentSemantic.Retain)]
get {