GKTurnBasedMatch.AcceptInvite(Action<GKTurnBasedMatch,NSError>) 方法

定义

接受对匹配项的邀请,然后将新的匹配对象以及一个错误对象传递给 completionHandler,如果未发生错误,则 null 为 。

[Foundation.Export("acceptInviteWithCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AcceptInvite (Action<GameKit.GKTurnBasedMatch,Foundation.NSError> completionHandler);
[Foundation.Export("acceptInviteWithCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AcceptInvite (Action<GameKit.GKTurnBasedMatch,Foundation.NSError> completionHandler);
abstract member AcceptInvite : Action<GameKit.GKTurnBasedMatch, Foundation.NSError> -> unit
override this.AcceptInvite : Action<GameKit.GKTurnBasedMatch, Foundation.NSError> -> unit

参数

completionHandler
Action<GKTurnBasedMatch,NSError>

内容待定。

此参数可以为 null

属性

适用于