Initializes a browser view controller with the provided browser and session.
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 10.0+
An object that the browser view controller uses for browsing. This is usually an instance of
MCNearby. However, if your app is using a custom discovery scheme, you can instead pass any custom subclass that calls the methods defined in the
MCNearbyprotocol on its delegate when peers are found and lost.
Service Browser Delegate
The multipeer session into which the invited peers are connected.
Returns an initialized object, or
nil if an error occurred.
This method throws an exception if the
session parameters do not contain valid objects.