---
title: "player(_:receivedExchangeCancellation:for:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkturnbasedeventlistener/player(_:receivedexchangecancellation:for:)"
---

# player(_:receivedExchangeCancellation:for:)

Handles when the sender cancels an exchange request they intiated.

## Declaration

```swift
optional func player(_ player: GKPlayer, receivedExchangeCancellation exchange: GKTurnBasedExchange, for match: GKTurnBasedMatch)
```

## Parameters

- `player`: The player who receives this turn-based event.
- `exchange`: The exchange request that the sender cancels.
- `match`: The match related to this turn-based event.

## Mentioned in

Exchanging data between players in turn-based games

## See Also

### Handling Data Exchanges

- [player(_:receivedExchangeRequest:for:)](gamekit/gkturnbasedeventlistener/player(_:receivedexchangerequest:for:).md)
- [player(_:receivedExchangeReplies:forCompletedExchange:for:)](gamekit/gkturnbasedeventlistener/player(_:receivedexchangereplies:forcompletedexchange:for:).md)
