Edit

Share via


GKTurnBasedMatch.DeclineInviteAsync Method

Definition

Declines 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.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch> DeclineInviteAsync ();
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch> DeclineInviteAsync ();
abstract member DeclineInviteAsync : unit -> System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch>
override this.DeclineInviteAsync : unit -> System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch>

Returns

A task that represents the asynchronous DeclineInvite operation. The value of the TResult parameter is of type System.Action<GameKit.GKTurnBasedMatch,Foundation.NSError>.

Attributes

Applies to