---
title: "show(withTitle:message:duration:completionHandler:)"
framework: gamekit
role: symbol
role_heading: Type Method
path: "gamekit/gknotificationbanner/show(withtitle:message:duration:completionhandler:)"
---

# show(withTitle:message:duration:completionHandler:)

Displays a banner to the player for a specified period of time.

## Declaration

```swift
class func show(withTitle title: String?, message: String?, duration: TimeInterval, completionHandler: (@Sendable () -> Void)? = nil)
```

```swift
class func show(withTitle title: String?, message: String?, duration: TimeInterval) async
```

## Parameters

- `title`: The title of the banner.
- `message`: The message on the banner.
- `duration`: The amount of time that GameKit should dispay the banner to the player.
- `completionHandler`: The block that GameKit calls when the player or GameKit dismisses the banner.

## See Also

### Displaying the Banner

- [show(withTitle:message:completionHandler:)](gamekit/gknotificationbanner/show(withtitle:message:completionhandler:).md)
