EAAccessoryDidDisconnectNotification
A notification that is posted when an accessory is disconnected and no longer available for your application to use.
Declaration
extern NSString * const EAAccessoryDidDisconnectNotification;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.