Instance Property

delegate

The delegate object that handles browser-view-controller-related events.

Declaration

iOS, Mac Catalyst, tvOS
@property(weak, nonatomic) id<MCBrowserViewControllerDelegate> delegate;
macOS
@property(weak, atomic) id<MCBrowserViewControllerDelegate> delegate;

Discussion

A browser view controller notifies the delegate:

  • When the user presses the “Done” button, which is enabled when the specified minimum number of peers are connected in a session.

  • When the user cancels the view controller.

Also, as new peers are discovered, the delegate can choose whether to present them in the user interface.

See Also

Initializing a Browser View Controller

- initWithServiceType:session:

Initializes a browser view controller using the provided service type and session.

- initWithBrowser:session:

Initializes a browser view controller with the provided browser and session.

browser

The browser object that is used for discovering peers.

session

The multipeer session to which the invited peers are connected.