共用方式為


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 > 。

屬性

適用於