Contents

player(_:receivedExchangeRequest:for:)

Handles when the local player receives an exchange request from another participant.

Declaration

optional func player(_ player: GKPlayer, receivedExchangeRequest exchange: GKTurnBasedExchange, for match: GKTurnBasedMatch)

Parameters

  • player:

    The player who receives this turn-based event.

  • exchange:

    The exchange request sent from the other participant.

  • match:

    The match related to this turn-based event.

Mentioned in

Discussion

Reply to this exchange request using the GKTurnBasedExchange reply(withLocalizableMessageKey:arguments:data:completionHandler:) method.

See Also

Handling Data Exchanges