---
title: GCKeyboard.DidConnectMessage
framework: gamecontroller
role: symbol
role_heading: Structure
path: gamecontroller/gckeyboard/didconnectmessage
---

# GCKeyboard.DidConnectMessage

A message that posts after a keyboard accessory connects to the device.

## Declaration

```swift
struct DidConnectMessage
```

## Overview

Overview Use the didConnect identifier with NotificationCenter to listen for this message. let observation = NotificationCenter.default.addObserver(of: GCKeyboard.self, for: .didConnect) { message in    let keyboard = message.keyboard }

## Topics

### Initializers

- [init(keyboard:)](gamecontroller/gckeyboard/didconnectmessage/init(keyboard:).md)

### Instance Properties

- [keyboard](gamecontroller/gckeyboard/didconnectmessage/keyboard.md)

## Relationships

### Conforms To

- [NotificationCenter.MainActorMessage](foundation/notificationcenter/mainactormessage.md)
- [SendableMetatype](swift/sendablemetatype.md)
