共用方式為


GKMatchmaker.FindPlayersForHostedRequestAsync(GKMatchRequest) 方法

定義

尋找託管比對要求的玩家。

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

參數

request
GKMatchRequest

傳回

表示非同步 FindPlayersForHostedRequest 作業的工作。 TResult 參數的值的類型為 System.Action < GameKit.GKPlayer[],Foundation.NSError > 。

屬性

備註

FindPlayersForHostedRequestAsync 方法適合用於 C# 非同步,方法是將控制項傳回給代表作業之 Task 的呼叫端。

即將加入。

適用於