<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MatterSupport",
  "identifier" : "/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "MatterSupport"
    ],
    "preciseIdentifier" : "s:13MatterSupport0A16AddDeviceRequestV0D8CriteriaO"
  },
  "title" : "MatterAddDeviceRequest.DeviceCriteria"
}
-->

# MatterAddDeviceRequest.DeviceCriteria

A predicate to match against possible devices that may appear in the picker.

```
enum DeviceCriteria
```

## Topics

### Creating criteria

[`init(from: any Decoder) throws`](/documentation/MatterSupport/MatterAddDeviceRequest/init(from:))

Create the request from a decoder.

### Defining the criteria

[`case allDevices`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/allDevices)

All device match without any filtering.

[`case all([MatterAddDeviceRequest.DeviceCriteria])`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/all(_:))

A device matches the given criteria if it matches all of the individual ones

[`case any([MatterAddDeviceRequest.DeviceCriteria])`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/any(_:))

A device matches the given criteria if it matches any one of the individual ones .

[`case commissioningID(UUID)`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/commissioningID(_:))

A device matches if it has the given commissioning identifier.

[`case fabricNode(rootPublicKey: Data, nodeID: UInt64)`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/fabricNode(rootPublicKey:nodeID:))

A device matches if it’s paired to a fabric using the provided fabric and node identifiers.

[`case not(MatterAddDeviceRequest.DeviceCriteria)`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/not(_:))

A device matches the given criteria if it does not match the provided criteria.

[`case productID(Int)`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/productID(_:))

A device matches if it has the given product identifier.

[`case serialNumber(String)`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/serialNumber(_:))

A device matches if it has the given product identifier.

[`case vendorID(Int)`](/documentation/MatterSupport/MatterAddDeviceRequest/DeviceCriteria/vendorID(_:))

A device matches if it has the given vendor.

### Encoding the criteria

### Comparing criteria

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

---

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)