iOS Guides | Samples

MultipeerConnectivity.MCSessionDelegate Class

A delegate object whose functions relate to events in the MCSession life-cycle, such as connection status changes and data reception.

See Also: MCSessionDelegate


[Foundation.Register("MCSessionDelegate", false)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public abstract class MCSessionDelegate : NSObject, IMCSessionDelegate, IDisposable


Callbacks to the MCSessionDelegate object are likely to be made on background threads. Application developers who wish to update the display must use, for instance, NSObject.InvokeOnMainThread.

Related content


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

The members of MultipeerConnectivity.MCSessionDelegate are listed below.

See Also: NSObject

Protected Constructors

Default constructor, initializes a new instance of this class.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

DidChangeState(MCSession, MCPeerID, MCSessionState)
Indicates that the session has transitioned to the new state.
DidFinishReceivingResource(MCSession, String, MCPeerID, NSUrl, NSError)
Indicates that the transfer of resourceName has completed.
DidReceiveCertificate(MCSession, SecCertificate[], MCPeerID, Action<bool>) : Boolean
Indicates peerID wishes to join the session. certificateHandler must be called.
DidReceiveData(MCSession, NSData, MCPeerID)
Indicates the arrival of data.
DidReceiveStream(MCSession, NSInputStream, String, MCPeerID)
Indicates the arrival of stream.
DidStartReceivingResource(MCSession, String, MCPeerID, NSProgress)
Indicates that resourceName has begun to arrive.