MCSession.SendData(NSData, MCPeerID[], MCSessionSendDataMode, NSError) 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.
Enqueues for delivery the data
to the peers in peerIDs
.
[Foundation.Export("sendData:toPeers:withMode:error:")]
public virtual bool SendData (Foundation.NSData data, MultipeerConnectivity.MCPeerID[] peerIDs, MultipeerConnectivity.MCSessionSendDataMode mode, out Foundation.NSError error);
abstract member SendData : Foundation.NSData * MultipeerConnectivity.MCPeerID[] * MultipeerConnectivity.MCSessionSendDataMode * -> bool
override this.SendData : Foundation.NSData * MultipeerConnectivity.MCPeerID[] * MultipeerConnectivity.MCSessionSendDataMode * -> bool
Parameters
- data
- NSData
- peerIDs
- MCPeerID[]
- error
- NSError
Returns
true
if the message was enqueued for delivery.
- Attributes
Remarks
Note that the return value only indicates successful enqueueing of the data for transmission, not a confirmation of delivery.