GKTurnBasedMatch.SendExchangeAsync 方法

定义

向 中列出的 participants玩家发送交换请求。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKTurnBasedExchange> SendExchangeAsync (GameKit.GKTurnBasedParticipant[] participants, Foundation.NSData data, string localizableMessage, Foundation.NSObject[] arguments, double timeout);
abstract member SendExchangeAsync : GameKit.GKTurnBasedParticipant[] * Foundation.NSData * string * Foundation.NSObject[] * double -> System.Threading.Tasks.Task<GameKit.GKTurnBasedExchange>
override this.SendExchangeAsync : GameKit.GKTurnBasedParticipant[] * Foundation.NSData * string * Foundation.NSObject[] * double -> System.Threading.Tasks.Task<GameKit.GKTurnBasedExchange>

参数

participants
GKTurnBasedParticipant[]
data
NSData
localizableMessage
String
arguments
NSObject[]
timeout
Double

返回

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

属性

适用于