<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ExternalAccessory",
  "identifier" : "/documentation/ExternalAccessory/EAAccessoryDidDisconnectNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "External Accessory"
    ],
    "preciseIdentifier" : "c:@EAAccessoryDidDisconnectNotification"
  },
  "title" : "EAAccessoryDidDisconnectNotification"
}
-->

# EAAccessoryDidDisconnectNotification

A notification that is posted when an accessory is disconnected and no longer available for your application to use.

```
extern NSString * const EAAccessoryDidDisconnectNotification;
```

## Discussion

The notification object is the shared accessory manager. The `userInfo` dictionary contains an [`EAAccessoryKey`](/documentation/ExternalAccessory/EAAccessoryKey), whose value is the [`EAAccessory`](/documentation/ExternalAccessory/EAAccessory) object representing the accessory that was disconnected. Before delivery of this notification can occur, you must call the [`registerForLocalNotifications()`](/documentation/ExternalAccessory/EAAccessoryManager/registerForLocalNotifications()) method to let the system know you are interested in receiving this notification.

If your accessory manager has a delegate, the delegate can use the [`accessoryDidDisconnect(_:)`](/documentation/ExternalAccessory/EAAccessoryDelegate/accessoryDidDisconnect(_:)) method to receive this notification instead.

---

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)