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# 异步,方法是将控制权返回到具有表示操作的任务的调用方。
内容待定。