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

# parseLEDElement

Parses an element to see if it supports LED usages.

```
virtual bool parseLEDElement(IOHIDElement *element);
```

## Parameters

`element`

An `IOHIDElement` object to parse.

## Return Value

`true` on success, otherwise `false`.

## Discussion

This method checks the element to determine if it contains LED data suitable for dispatching in an event. If it does, the method stores a reference to the element for later use. When the driver object receives subsequent reports from the device, it uses the information in the stored LED elements to dispatch LED-specific events.

---

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)