GKMatch.SendData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[]
- mode
- GKMatchSendDataMode
- 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[]
- mode
- GKMatchSendDataMode
- 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[]
- mode
- GKMatchSendDataMode
- error
- NSError
Returns
- Attributes