A message that posts after a keyboard accessory disconnects from
the device.
Use the `didDisconnect` identifier with `NotificationCenter` to listen
for this message.
```
let observation = NotificationCenter.default.addObserver(of: GCKeyboard.self, for: .didDisconnect) { message in
let keyboard = message.keyboard
}
```
Converts a posted notification into this main actor message type for any observers.
To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message.
- Parameter notification: The posted ``Notification``.
- Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.
get · iOS 26.0+
name
TypeScript
static get nameValue(): _Foundation_NSNotification_Name
Swift declaration
static var name: Notification.Name { get }
A optional name corresponding to this type, used to interoperate with notification posters and observers.
get · iOS 26.0+
keyboard
TypeScript
get keyboard(): GCKeyboard
Swift declaration
var keyboard: GCKeyboard
The keyboard object that disconnected from the device.
set · iOS 26.0+
keyboard
TypeScript
set keyboard(value: GCKeyboard)
Swift declaration
var keyboard: GCKeyboard
The keyboard object that disconnected from the device.