<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCSpatialAccessoryDidConnectNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:@GCSpatialAccessoryDidConnectNotification"
  },
  "title" : "GCSpatialAccessoryDidConnectNotification"
}
-->

# GCSpatialAccessoryDidConnectNotification

Use these constants with NSNotificationCenter to listen to connection and disconnection events.

```
extern NSString * const GCSpatialAccessoryDidConnectNotification;
```

## Discussion

Use GCSpatialAccessoryDidConnectNotification for observing connections of spatial accessories.
Use GCSpatialAccessoryDidDisconnectNotification for observing disconnections of spatial accessories.

Connections and disconnections of spatial accessories will also be reflected in the accessories array
of the GCSpatialAccessory class.

The ‘object’ property of the notification will contain the GCSpatialAccessory that was connected or disconnected.

---

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)