iOS Guides | Samples

MultipeerConnectivity.MCSession.SendData Method

Enqueues for delivery the data to the peers in peerIDs.

Syntax

[Foundation.Export("sendData:toPeers:withMode:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Boolean SendData (NSData data, MCPeerID[] peerIDs, MCSessionSendDataMode mode, out NSError error)

Parameters

data
peerIDs
mode
error

Returns

true if the message was enqueued for delivery.

Remarks

Note that the return value only indicates successful enqueueing of the data for transmission, not a confirmation of delivery.

Requirements

Namespace: MultipeerConnectivity
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0