---
title: MCSessionDelegate
framework: multipeerconnectivity
role: symbol
role_heading: Protocol
path: multipeerconnectivity/mcsessiondelegate
---

# MCSessionDelegate

The MCSessionDelegate protocol defines methods that a delegate of the MCSession class can implement to handle session-related events. For more information, see MCSession.

## Declaration

```swift
protocol MCSessionDelegate : NSObjectProtocol
```

## Overview

Overview Delegate calls occur on a private serial queue. If your app needs to perform an action on a particular run loop or operation queue, its delegate method should explicitly dispatch or schedule that work.

## Topics

### MCSession Delegate Methods

- [session(_:didReceive:fromPeer:)](multipeerconnectivity/mcsessiondelegate/session(_:didreceive:frompeer:).md)
- [session(_:didStartReceivingResourceWithName:fromPeer:with:)](multipeerconnectivity/mcsessiondelegate/session(_:didstartreceivingresourcewithname:frompeer:with:).md)
- [session(_:didFinishReceivingResourceWithName:fromPeer:at:withError:)](multipeerconnectivity/mcsessiondelegate/session(_:didfinishreceivingresourcewithname:frompeer:at:witherror:).md)
- [session(_:didReceive:withName:fromPeer:)](multipeerconnectivity/mcsessiondelegate/session(_:didreceive:withname:frompeer:).md)
- [session(_:peer:didChange:)](multipeerconnectivity/mcsessiondelegate/session(_:peer:didchange:).md)
- [session(_:didReceiveCertificate:fromPeer:certificateHandler:)](multipeerconnectivity/mcsessiondelegate/session(_:didreceivecertificate:frompeer:certificatehandler:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Protocols

- [MCAdvertiserAssistantDelegate](multipeerconnectivity/mcadvertiserassistantdelegate.md)
- [MCBrowserViewControllerDelegate](multipeerconnectivity/mcbrowserviewcontrollerdelegate.md)
- [MCNearbyServiceAdvertiserDelegate](multipeerconnectivity/mcnearbyserviceadvertiserdelegate.md)
- [MCNearbyServiceBrowserDelegate](multipeerconnectivity/mcnearbyservicebrowserdelegate.md)
