<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryAccess",
  "identifier" : "/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accessory Access",
      "AccessoryAccess"
    ],
    "preciseIdentifier" : "s:So30AAUSBAccessoryMatchingCriteriaC15AccessoryAccessE06DevicebC0V"
  },
  "title" : "AAUSBAccessoryMatchingCriteria.DeviceMatchingCriteria"
}
-->

# AAUSBAccessoryMatchingCriteria.DeviceMatchingCriteria

A structure you provide that enumerates which device characteristics to search for.

```
struct DeviceMatchingCriteria
```

## Topics

### Creating a device characteristics structure

[`init(vendorID:productID:deviceClass:deviceSubClass:deviceProtocol:speed:)`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/init(vendorID:productID:deviceClass:deviceSubClass:deviceProtocol:speed:))

Initializes a new device matching criteria structure with the provided values.

### Device characteristics

[`deviceClass`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/deviceClass)

The value that represents the device class.

[`deviceProtocol`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/deviceProtocol)

The value that represents the device protocol.

[`deviceSubClass`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/deviceSubClass)

The value that represents the device subclass.

[`productID`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/productID)

The value that represents the product ID.

[`speed`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/speed)

The value that represents the device speed.

[`vendorID`](/documentation/AccessoryAccess/AAUSBAccessoryMatchingCriteria/DeviceMatchingCriteria/vendorID)

The value that represents the vendor ID.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)