<!--
{
  "availability" : [
    "iOS: 5.0.0 - 16.1.0",
    "iPadOS: 5.0.0 - 16.1.0",
    "macCatalyst: 13.1.0 - 16.1.0",
    "macOS: 10.8.0 - 13.0.0",
    "tvOS: 9.0.0 - 16.1.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKNotificationBanner/show(withTitle:message:duration:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKNotificationBanner(cm)showBannerWithTitle:message:duration:completionHandler:"
  },
  "title" : "show(withTitle:message:duration:completionHandler:)"
}
-->

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

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

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

## 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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)