Called when an invitation to join a session is received from a nearby peer.
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 10.0+
The advertiser object that was invited to join the session.
The peer ID of the nearby peer that invited your app to join the session.
An arbitrary piece of data received from the nearby peer. This can be used to provide further information to the user about the nature of the invitation.
A block that your code must call to indicate whether the advertiser should accept or decline the invitation, and to provide a session with which to associate the peer that sent the invitation.