---
title: EAAccessoryDidDisconnectNotification
framework: externalaccessory
role: symbol
role_heading: Global Variable
path: externalaccessory/eaaccessorydiddisconnectnotification
---

# EAAccessoryDidDisconnectNotification

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

## Declaration

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

## Discussion

Discussion The notification object is the shared accessory manager. The userInfo dictionary contains an EAAccessoryKey, whose value is the EAAccessory object representing the accessory that was disconnected. Before delivery of this notification can occur, you must call the 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(_:) method to receive this notification instead.

## See Also

### Managing Connection Status Changes

- [registerForLocalNotifications()](externalaccessory/eaaccessorymanager/registerforlocalnotifications().md)
- [unregisterForLocalNotifications()](externalaccessory/eaaccessorymanager/unregisterforlocalnotifications().md)
- [EAAccessoryDidConnectNotification](externalaccessory/eaaccessorydidconnectnotification.md)
- [EAAccessoryKey](externalaccessory/eaaccessorykey.md)
- [EAAccessorySelectedKey](externalaccessory/eaaccessoryselectedkey.md)
