GKTurnBasedMatch.DeclineInviteAsync 方法

定义

拒绝对匹配项的邀请,然后将新的匹配对象 completionHandler以及错误对象 null 传递给 (如果未发生错误)。

[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>

返回

表示异步 DeclineInvite 操作的任务。 TResult 参数的值的类型为 System.Action<GameKit.GKTurnBasedMatch,Foundation.NSError>。

属性

适用于