<!--
{
  "availability" : [
    "DriverKit: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/IOHIDDigitizerCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HIDDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOHIDDigitizerCollection"
  },
  "title" : "IOHIDDigitizerCollection"
}
-->

# IOHIDDigitizerCollection

A collection of elements that contain digitizer-related data.

```
class IOHIDDigitizerCollection;
```

## Topics

### Creating a Digitizer Collection

[`static IOHIDDigitizerCollection * withType(IOHIDDigitizerCollectionType type, IOHIDElement *parentCollection);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/withType)

[`bool initWithType(IOHIDDigitizerCollectionType type, IOHIDElement *parentCollection);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/initWithType)

[`virtual void free();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/free)

[`typedef enum { ... } IOHIDDigitizerCollectionType;`](/documentation/HIDDriverKit/IOHIDDigitizerCollectionType)

### Accessing the Coordinates

[`IOFixed getX();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getX)

[`IOFixed getY();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getY)

[`IOFixed getZ();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getZ)

[`void setX(IOFixed x);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/setX)

[`void setY(IOFixed y);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/setY)

[`void setZ(IOFixed z);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/setZ)

### Managing the Collection Elements

[`IOHIDElement * getParentCollection();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getParentCollection)

[`void addElement(IOHIDElement *element);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/addElement)

[`OSArray * getElements();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getElements)

### Accessing Touch Data

[`bool getTouch();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getTouch)

[`void setTouch(bool touch);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/setTouch)

### Getting the Collection Attributes

[`IOHIDDigitizerCollectionType getType();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getType)

[`bool getInRange();`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/getInRange)

[`void setInRange(bool inRange);`](/documentation/HIDDriverKit/IOHIDDigitizerCollection/setInRange)

## Relationships

### Inherits From

[`OSContainer`](/documentation/DriverKit/OSContainer)

---

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)