<!--
{
  "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/MCBrowserViewControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Multipeer Connectivity"
    ],
    "preciseIdentifier" : "c:objc(pl)MCBrowserViewControllerDelegate"
  },
  "title" : "MCBrowserViewControllerDelegate"
}
-->

# MCBrowserViewControllerDelegate

The `MCBrowserViewControllerDelegate` protocol defines the methods that your delegate object can implement to handle events related to the `MCBrowserViewController` class.

```
protocol MCBrowserViewControllerDelegate : NSObjectProtocol
```

## 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-related updates are called on the main thread.

## Topics

### Peer Notifications

[`browserViewController(_:shouldPresentNearbyPeer:withDiscoveryInfo:)`](/documentation/MultipeerConnectivity/MCBrowserViewControllerDelegate/browserViewController(_:shouldPresentNearbyPeer:withDiscoveryInfo:))

Called when a new peer is discovered to decide whether to show it in the user interface.

### User Action Notifications

[`browserViewControllerDidFinish(_:)`](/documentation/MultipeerConnectivity/MCBrowserViewControllerDelegate/browserViewControllerDidFinish(_:))

Called when the browser view controller is dismissed with peers connected in a session.

[`browserViewControllerWasCancelled(_:)`](/documentation/MultipeerConnectivity/MCBrowserViewControllerDelegate/browserViewControllerWasCancelled(_:))

Called when the user cancels the browser view controller.



---

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)