---
title: createEventForDigitizerCollection
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserhideventdriver/createeventfordigitizercollection
---

# createEventForDigitizerCollection

Creates a HID event object that represents a digitizer collection.

## Declaration

```occ
IOHIDEvent * createEventForDigitizerCollection(IOHIDDigitizerCollection *collection, uint64_t timestamp, uint32_t reportID);
```

## Parameters

- `collection`: A collection of doc://com.apple.hiddriverkit/documentation/HIDDriverKit/IOHIDElement objects, each of which contains digitizer information to include in the event object.
- `timestamp`: The timestamp of the input report.
- `reportID`: The report ID.

## Return Value

Return Value An IOHIDEvent object containing the digitizer-related data. This method returns NULL if it encounters an error or if no elements in the collection contain updated values.

## Discussion

Discussion This method creates an IOHIDEvent object with any updated digitizer values that it finds. The handleDigitizerReport calls this method when processing an input report; don’t call this method directly.

## See Also

### Handling New Data Reports

- [handleReport](hiddriverkit/iouserhideventdriver/handlereport.md)
- [handleKeyboardReport](hiddriverkit/iouserhideventdriver/handlekeyboardreport.md)
- [handleRelativePointerReport](hiddriverkit/iouserhideventdriver/handlerelativepointerreport.md)
- [handleAbsolutePointerReport](hiddriverkit/iouserhideventdriver/handleabsolutepointerreport.md)
- [handleScrollReport](hiddriverkit/iouserhideventdriver/handlescrollreport.md)
- [handleDigitizerReport](hiddriverkit/iouserhideventdriver/handledigitizerreport.md)
