Invites a discovered peer to join a Multipeer Connectivity session.
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 10.0+
The ID of 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.