Class

MCNearbyServiceBrowser

Searches (by service type) for services offered by nearby devices using infrastructure Wi-Fi, peer-to-peer Wi-Fi, and Bluetooth (in iOS) or Ethernet (in macOS and tvOS), and provides the ability to easily invite those devices to a Multipeer Connectivity session (MCSession).

Declaration

@interface MCNearbyServiceBrowser : NSObject

Topics

Initializing the Browser

- initWithPeer:serviceType:

Initializes the nearby service browser object.

delegate

The delegate object that handles browser-related events.

myPeerID

The local peer ID for this instance.

serviceType

The service type to browse for.

Browsing for Peers

- startBrowsingForPeers

Starts browsing for peers.

- stopBrowsingForPeers

Stops browsing for peers.

Inviting Peers

- invitePeer:toSession:withContext:timeout:

Invites a discovered peer to join a Multipeer Connectivity session.

Relationships

Inherits From