---
title: "shouldShowBanner(forLocallyReceivedChallenge:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkchallengeeventhandlerdelegate/shouldshowbanner(forlocallyreceivedchallenge:)"
---

# shouldShowBanner(forLocallyReceivedChallenge:)

Called to determine whether a banner should be shown when the local player receives a challenge.

## Declaration

```swift
optional func shouldShowBanner(forLocallyReceivedChallenge challenge: GKChallenge!) -> Bool
```

## Parameters

- `challenge`: The received challenge.

## Return Value

Return Value Your delegate should return true if it wants a banner to be displayed. Otherwise it should return false.

## Discussion

Discussion If you do not implement this method, a banner is always shown.

## See Also

### Responding When a New Challenge is Received

- [localPlayerDidReceive(_:)](gamekit/gkchallengeeventhandlerdelegate/localplayerdidreceive(_:).md)
