Instance Method

browser(_:lostPeer:)

Called when a nearby peer is lost.

Required.

Declaration

func browser(_ browser: MCNearbyServiceBrowser, lostPeer peerID: MCPeerID)

Parameters

browser

The browser object that lost the nearby peer.

peerID

The unique ID of the nearby peer that was lost.

Discussion

This callback informs your app that invitations can no longer be sent to a peer, and that your app should remove that peer from its user interface.

See Also

Peer Discovery Delegate Methods

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software