iOS Developer Library

Developer

EAAccessoryDelegate Protocol Reference

Options
Deployment Target:

On This Page

EAAccessoryDelegate

The EAAccessoryDelegate protocol defines a single method for receiving notifications when the associated EAAccessory object is disconnected. Implementation of this method is optional.

  • Tells the delegate that the specified accessory was disconnected from the device.

    Declaration

    - (void)accessoryDidDisconnect:(EAAccessory *)accessory;

    Parameters

    accessory

    The accessory that was disconnected.

    Discussion

    The accessory manager calls this method as a convenience whenever it receives an EAAccessoryDidDisconnectNotification notification. You can use this method to remove any references to the specified accessory object and to stop any services currently using the accessory.

    Because this is a convenience method, your delegate does not also need to register as an observer of the EAAccessoryDidDisconnectNotification notification. However, if you want your delegate to be notified of newly connected accessories, you should configure it as an observer of the EAAccessoryDidConnectNotification notification.