---
title: "localPlayerDidReceive(_:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkchallengeeventhandlerdelegate/localplayerdidreceive(_:)"
---

# localPlayerDidReceive(_:)

Called when the local player receives a new challenge.

## Declaration

```swift
optional func localPlayerDidReceive(_ challenge: GKChallenge!)
```

## Parameters

- `challenge`: The received challenge.

## See Also

### Responding When a New Challenge is Received

- [shouldShowBanner(forLocallyReceivedChallenge:)](gamekit/gkchallengeeventhandlerdelegate/shouldshowbanner(forlocallyreceivedchallenge:).md)
