<!--
{
  "availability" : [
    "driverkit: 19.0.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/IOUserHIDEventService/conformsTo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HIDDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserHIDEventService@F@conformsTo#i#i#"
  },
  "title" : "conformsTo"
}
-->

# conformsTo

Returns a Boolean value that indicates whether the service conforms to the specified HID usage and page information.

```
virtual bool conformsTo(uint32_t usagePage, uint32_t usage);
```

## Parameters

`usagePage`

The HID usage page value.

`usage`

The HID usage value from the specified page.

## Return Value

`true` if the service conforms to the specified usage and page information, or `false` if it doesn’t.

## Discussion

Use this method to determine if a service is able to provide the specified type of data. This method iterates over the properties of the service’s provider object to look for the specified usage and page information, returning `true` if it finds an exact match.

---

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)