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

Syntax

[Foundation.Model]
[Foundation.Protocol]
[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

Remarks

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

Requirements

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

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

abstract
DidChangeState(MCSession, MCPeerID, MCSessionState)
Indicates that the session has transitioned to the new state.
abstract
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.
abstract
DidReceiveData(MCSession, NSData, MCPeerID)
Indicates the arrival of data.
abstract
DidReceiveStream(MCSession, NSInputStream, String, MCPeerID)
Indicates the arrival of stream.
abstract
DidStartReceivingResource(MCSession, String, MCPeerID, NSProgress)
Indicates that resourceName has begun to arrive.