Editar

Compartir a través de


MCSession.SendData(NSData, MCPeerID[], MCSessionSendDataMode, NSError) Method

Definition

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.

Applies to