Instance Method

player(_:receivedExchangeRequest:for:)

Called when a player receives an exchange request from another player.

Declaration

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

Parameters

player

The GKPlayer object containing the current player’s information.

exchange

A GKTurnBasedExchange object containing the requested exchange.

match

The GKTurnBasedMatch object containing the current game data.