Contents

browserViewControllerWasCancelled(_:)

Called when the user cancels the browser view controller.

Declaration

func browserViewControllerWasCancelled(_ browserViewController: MCBrowserViewController)

Parameters

  • browserViewController:

    The browser view controller that was canceled.

Discussion

This call is intended to inform your app that the view controller has been dismissed because the user canceled the discovery process and is no longer interested in creating a communication session.

When your app receives this delegate method call, your app must call dismiss(animated:completion:) to dismiss the view controller. Then, your app should handle the cancelation in whatever way is appropriate for your app, and then resume any UI updates that it may have temporarily suspended while the view controller was onscreen.

See Also

User Action Notifications