TechnologiesDevice, Sensors & Hardware

AccessoryAccess

iOSmacOStvOSwatchOSvisionOS

AccessoryAccess lets your macOS app discover, manage, and communicate with USB accessories. You use AAUSBAccessoryManager to coordinate access to connected hardware, and define AAUSBAccessoryMatchingCriteria to identify the accessories your app cares about. Adopt the AAUSBAccessoryListener protocol to receive connection-detection callbacks as AAUSBAccessory instances become available, and handle failures through AAError.

Essentials 1

The central object that coordinates discovery of and access to connected USB accessories.

  • Cl
    AAUSBAccessoryManagermacOS 27.0+
    @abstract `AAUSBAccessoryManager` manages the USB accessories.

Accessories 1

The representation of an individual USB accessory available to your app.

  • Cl
    AAUSBAccessorymacOS 27.0+
    @abstract Class representing a USB accessory.

Matching and Discovery 2

Types that describe which accessories your app cares about and deliver connection-detection callbacks.

  • Cl
    AAUSBAccessoryMatchingCriteriamacOS 27.0+
    @abstract Class representing the accessory matching criteria for a USB accessory.
  • Pr
    AAUSBAccessoryListenermacOS 27.0+
    @abstract `AAUSBAccessoryListener` listens to the USB accessory events.

Errors 1

The error type that reports failures encountered while accessing USB accessories.

  • St
    AAErrormacOS 27.0+
    A structure that describes an error encountered while discovering or communicating with USB accessories.
← Device, Sensors & Hardware