---
title: MCNearbyServiceAdvertiserDelegate
framework: multipeerconnectivity
role: symbol
role_heading: Protocol
path: multipeerconnectivity/mcnearbyserviceadvertiserdelegate
---

# MCNearbyServiceAdvertiserDelegate

The MCNearbyServiceAdvertiserDelegate protocol describes the methods that the delegate object for an MCNearbyServiceAdvertiser instance can implement for handling events from the MCNearbyServiceAdvertiser class.

## Declaration

```swift
protocol MCNearbyServiceAdvertiserDelegate : NSObjectProtocol
```

## Overview

Overview No assumption should be made about which queue the delegate methods are called on. It is the receiver’s responsibility to ensure that any UIKit updates are called on the main thread.

## Topics

### Error Handling Delegate Methods

- [advertiser(_:didNotStartAdvertisingPeer:)](multipeerconnectivity/mcnearbyserviceadvertiserdelegate/advertiser(_:didnotstartadvertisingpeer:).md)

### Invitation Handling Delegate Methods

- [advertiser(_:didReceiveInvitationFromPeer:withContext:invitationHandler:)](multipeerconnectivity/mcnearbyserviceadvertiserdelegate/advertiser(_:didreceiveinvitationfrompeer:withcontext:invitationhandler:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Protocols

- [MCAdvertiserAssistantDelegate](multipeerconnectivity/mcadvertiserassistantdelegate.md)
- [MCBrowserViewControllerDelegate](multipeerconnectivity/mcbrowserviewcontrollerdelegate.md)
- [MCNearbyServiceBrowserDelegate](multipeerconnectivity/mcnearbyservicebrowserdelegate.md)
- [MCSessionDelegate](multipeerconnectivity/mcsessiondelegate.md)
