MCSession.SendData(NSData, MCPeerID[], MCSessionSendDataMode, NSError) Method
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
.
C#
[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
- data
- NSData
- peerIDs
- MCPeerID[]
- error
- NSError
true
if the message was enqueued for delivery.
- Attributes
Note that the return value only indicates successful enqueueing of the data for transmission, not a confirmation of delivery.
Produkt | Versiounen |
---|---|
Xamarin.Mac SDK | 14 |