GKMatchmaker.FindPlayersForHostedRequestAsync(GKMatchRequest) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
尋找託管比對要求的玩家。
[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 的呼叫端。
即將加入。