Searches (by service type) for services offered by nearby devices using infrastructure Wi-Fi, peer-to-peer Wi-Fi, and Bluetooth, and provides the ability to easily invite those devices to a Multipeer Connectivity session.
Invites a discovered peer to join a Multipeer Connectivity session.
The peer to invite.
The session you wish the invited peer to join.
An arbitrary piece of data that is passed to the nearby peer. This can be used to provide further information to the user about the nature of the invitation.
The amount of time to wait for the peer to respond to the invitation. This timeout is measured in seconds, and must be a positive value. If a negative value or zero is specified, the default timeout (30 seconds) is used.
Starts browsing for peers.
Stops browsing for peers.
The service type to browse for.
This event is fired if something goes wrong with browsing.
The error code.
The error domain.
The error description.
This event is fired when a peer is found.
This event is fired when a peer is lost.