共用方式為


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

定義

拒絕相符專案邀請,然後將新的比對物件傳遞至 completionHandler ,以及發生錯誤時的錯誤物件 null

[Foundation.Export("declineInviteWithCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DeclineInvite (Action<GameKit.GKTurnBasedMatch,Foundation.NSError> completionHandler);
[Foundation.Export("declineInviteWithCompletionHandler:")]
[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 DeclineInvite (Action<GameKit.GKTurnBasedMatch,Foundation.NSError> completionHandler);
abstract member DeclineInvite : Action<GameKit.GKTurnBasedMatch, Foundation.NSError> -> unit
override this.DeclineInvite : Action<GameKit.GKTurnBasedMatch, Foundation.NSError> -> unit

參數

completionHandler
Action<GKTurnBasedMatch,NSError>

即將加入。

這個參數可以是 null

屬性

適用於