Düzenle

Aracılığıyla paylaş


GKMatch.SendData Method

Definition

Overloads

SendData(NSData, GKPlayer[], GKMatchSendDataMode, NSError)
SendData(NSData, String[], GKMatchSendDataMode, NSError)
SendData(NSData, String[], GKMatchSendDataMode, NSError)

SendData(NSData, GKPlayer[], GKMatchSendDataMode, NSError)

[Foundation.Export("sendData:toPlayers:dataMode:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SendData (Foundation.NSData data, GameKit.GKPlayer[] players, GameKit.GKMatchSendDataMode mode, out Foundation.NSError error);
abstract member SendData : Foundation.NSData * GameKit.GKPlayer[] * GameKit.GKMatchSendDataMode *  -> bool
override this.SendData : Foundation.NSData * GameKit.GKPlayer[] * GameKit.GKMatchSendDataMode *  -> bool

Parameters

data
NSData
players
GKPlayer[]
error
NSError

Returns

Attributes

Applies to

SendData(NSData, String[], GKMatchSendDataMode, NSError)

public virtual bool SendData (Foundation.NSData data, string[] players, GameKit.GKMatchSendDataMode mode, Foundation.NSError error);
abstract member SendData : Foundation.NSData * string[] * GameKit.GKMatchSendDataMode * Foundation.NSError -> bool
override this.SendData : Foundation.NSData * string[] * GameKit.GKMatchSendDataMode * Foundation.NSError -> bool

Parameters

data
NSData
players
String[]
error
NSError

Returns

Applies to

SendData(NSData, String[], GKMatchSendDataMode, NSError)

[Foundation.Export("sendData:toPlayers:withDataMode:error:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'SendDataToAllPlayers (NSData, GKPlayer[] players, GKMatchSendDataMode mode, NSError error)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, "Use 'SendDataToAllPlayers (NSData, GKPlayer[] players, GKMatchSendDataMode mode, NSError error)' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SendData (Foundation.NSData data, string[] players, GameKit.GKMatchSendDataMode mode, out Foundation.NSError error);
abstract member SendData : Foundation.NSData * string[] * GameKit.GKMatchSendDataMode *  -> bool
override this.SendData : Foundation.NSData * string[] * GameKit.GKMatchSendDataMode *  -> bool

Parameters

data
NSData
players
String[]
error
NSError

Returns

Attributes

Applies to