Protocol

MCNearbyServiceBrowserDelegate

The MCNearbyServiceBrowserDelegate protocol defines methods that a MCNearbyServiceBrowser object’s delegate can implement to handle browser-related events.

Declaration

@protocol MCNearbyServiceBrowserDelegate

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

- browser:didNotStartBrowsingForPeers:

Called when a browser failed to start browsing for peers.

Peer Discovery Delegate Methods

- browser:foundPeer:withDiscoveryInfo:

Called when a nearby peer is found.

Required.

- browser:lostPeer:

Called when a nearby peer is lost.

Required.

Relationships

Inherits From

Conforming Types