---
title: newReportDescriptor
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserhiddevice/newreportdescriptor
---

# newReportDescriptor

Returns the data in the HID device’s report descriptor.

## Declaration

```occ
virtual OSData * newReportDescriptor();
```

## Return Value

Return Value An OSData object containing the report descriptor for the device.

## Discussion

Discussion Override this method and use it to fetch the report descriptor from the device. Return the raw bytes for that report in an OSData object.
