Edit

Share via


GKTurnBasedMatch.AcceptInvite(Action<GKTurnBasedMatch,NSError>) Method

Definition

Accepts an invitation to a match and then passes a new match object to completionHandler, along with an error object that is null if no error occurred.

[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

Parameters

completionHandler
Action<GKTurnBasedMatch,NSError>

To be added.

This parameter can be null.

Attributes

Applies to