---
title: GCStylusDidConnectNotification
framework: gamecontroller
role: symbol
role_heading: Global Variable
path: gamecontroller/gcstylusdidconnectnotification
---

# GCStylusDidConnectNotification

A notification that posts after a stylus accessory connects to the device.

## Declaration

```occ
extern NSString * const GCStylusDidConnectNotification;
```

## Mentioned in

Discovering and tracking spatial game controllers and styli

## Discussion

Discussion Use this constant with NSNotificationCenter to listen for stylus connection events. Connections of stylus accessories will be reflected in the styli array of the GCStylus class when the notification posts. The object property of the notification will contain the GCStylus that was connected.

## See Also

### Accessing the styli

- [styli](gamecontroller/gcstylus/styli.md)
- [GCStylusDidDisconnectNotification](gamecontroller/gcstylusdiddisconnectnotification.md)
