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