EAAccessoryDelegate Protocol Reference

Conforms to
Availability
Available in iOS 3.0 and later.
Declared in
EAAccessory.h
Related sample code

Overview

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

Tasks

Responding to Disconnection Events

Instance Methods

accessoryDidDisconnect:

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

- (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.

Availability
  • Available in iOS 3.0 and later.
Declared In
EAAccessory.h