Obtains connection data for the specified peer.
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 10.0+
A peer ID object obtained from the nearby peer that you want to add to a session.
A handler that is called when connection data is available or when an error occurs.
This method provides connection data that is required when adding a specific nearby peer to a session if you are using your own service discovery code instead of an
MCBrowser object. For more information, see the Managing Peers Manually section in the overview of the
MCSession class reference.