Contents

match(_:didFailWithError:)

Handles the local player’s connection errors to a match.

Declaration

optional func match(_ match: GKMatch, didFailWithError error: (any Error)?)

Parameters

  • match:

    The match in which the error occurs.

  • error:

    The error that occurs.

Discussion

GameKit calls this method when the local player can’t connect to any other players in the match.