Contents

AAUSBAccessory

A class that represents a USB accessory.

Declaration

class AAUSBAccessory

Discussion

Obtain a USB accessory from the usbAccessoryDidConnect(_:) method, or instantiate one from an XPC representation that describes an existing USB accessory.

A USB accessory may not be in a configured state when your application receives it. To configure a USB accessory, open it with open(serviceQueue:completionHandler:) and select a configuration with configureWithValue:error:.

Topics

Creating USB accessories

Getting information about a USB accessory

Managing a USB accessory

Connection and disconnection events

Encoding a USB accessory for delivery to an XPC service

See also

See Also

Managing accessories