<!--
{
  "availability" : [
    "iOS: 7.0.0 - 27.0.0",
    "iPadOS: 7.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.10.0 - 27.0.0",
    "tvOS: 10.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MultipeerConnectivity",
  "identifier" : "/documentation/MultipeerConnectivity/MCAdvertiserAssistant",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Multipeer Connectivity"
    ],
    "preciseIdentifier" : "c:objc(cs)MCAdvertiserAssistant"
  },
  "title" : "MCAdvertiserAssistant"
}
-->

# MCAdvertiserAssistant

The `MCAdvertiserAssistant` is a convenience class that handles advertising, presents incoming invitations to the user, and handles users’ responses. Use this class to provide a user interface for handling invitations when your app does not require programmatic control over the invitation process.

```
class MCAdvertiserAssistant
```

## Overview

Before you can advertise a service, you must create an `MCPeerID` object that identifies your app and the user to nearby devices.

## Topics

### Initializing and Configuring

[`-  initWithServiceType:discoveryInfo:session:`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/init(serviceType:discoveryInfo:session:))

Initializes an advertiser assistant object.

[`session`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/session)

The session into which new peers are added after accepting an invitation.

[`delegate`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/delegate)

The delegate object that handles advertising-assistant-related events.

[`discoveryInfo`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/discoveryInfo)

The `info` dictionary that was passed when this object was initialized.

[`serviceType`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/serviceType)

The service type that your app is advertising.

### Starting and Stopping the Assistant

[`-  start`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/start())

Begins advertising the service provided by a local peer and starts the assistant.

[`-  stop`](/documentation/MultipeerConnectivity/MCAdvertiserAssistant/stop())

Stops advertising the service provided by a local peer and stops the assistant.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)