Contents

matchmakerViewController(_:didFailWithError:)

Handles when a view controller encounters an error while finding players for a match.

Declaration

func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: any Error)

Parameters

  • viewController:

    The view controller that encounters an error.

  • error:

    The error that occurs.

Mentioned in

Discussion

This method needs to dismiss the view controller.

See Also

Handling cancellations and errors