Class

EAAccessoryManager

The object you use to identify connected accessories, and to begin the delivery of connection and disconnection notifications.

Declaration

@interface EAAccessoryManager : NSObject

Overview

An EAAccessoryManager object coordinates the attached accessories for an iOS-based device. Use an accessory manager to retrieve a list of accessories that you want your app to be able to connect to. You also use that object to start and stop the sending of accessory-related connect and disconnect notifications.

Topics

Getting the Shared Accessory Manager

+ sharedAccessoryManager

Returns the shared accessory manager object for the iOS-based device.

Starting and Stopping Accessory Notifications

- registerForLocalNotifications

Begins the delivery of accessory-related notifications to the current application.

- unregisterForLocalNotifications

Stops the delivery of accessory-related notifications to the current application.

Monitoring Connection Status Changes

EAAccessoryDidDisconnectNotification

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

EAAccessoryDidConnectNotification

A notification that is posted when an accessory becomes connected and available for your application to use.

EAAccessoryKey

A key that indicates the accessory object whose status changed.

EAAccessorySelectedKey

A key that indicates the accessory object that the user selected.

Presenting the Bluetooth Picker

- showBluetoothAccessoryPickerWithNameFilter:completion:

Displays an alert that allows the user to pair the device with a Bluetooth accessory.

EABluetoothAccessoryPickerCompletion

The completion block for the Bluetooth picker.

EABluetoothAccessoryPickerErrorCode

The error codes that may be passed in an error object for the Bluetooth picker completion block.

EABluetoothAccessoryPickerErrorDomain

The domain for errors passed to a Bluetooth picker completion block.

Getting the Available Accessories

connectedAccessories

The accessory objects corresponding to the list of currently connected accessories.

Relationships

Inherits From