---
title: HIDElementCollection
framework: corehid
role: symbol
role_heading: Structure
path: corehid/hidelementcollection
---

# HIDElementCollection

A collection of items from a report descriptor for a HID device.

## Declaration

```swift
struct HIDElementCollection
```

## Overview

Overview Collections are a defined part of the HID specification to specify how groupings of data relate to each other, and provide an overall structure for the organization of device functionality. See the HID specification for more details: https://www.usb.org/hid.

## Topics

### Instance Properties

- [childCollections](corehid/hidelementcollection/childcollections.md)
- [childElements](corehid/hidelementcollection/childelements.md)
- [client](corehid/hidelementcollection/client.md)
- [parentCollection](corehid/hidelementcollection/parentcollection.md)
- [type](corehid/hidelementcollection/type.md)
- [usage](corehid/hidelementcollection/usage.md)

### Enumerations

- [HIDElementCollection.CollectionType](corehid/hidelementcollection/collectiontype.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Interaction

- [Communicating with human interface devices](corehid/communicatingwithhiddevices.md)
- [HIDDeviceClient](corehid/hiddeviceclient.md)
- [HIDElement](corehid/hidelement.md)
- [HIDElement.Value](corehid/hidelement/value.md)
- [HIDElementUpdate](corehid/hidelementupdate.md)
- [HIDReportType](corehid/hidreporttype.md)
- [HIDReportID](corehid/hidreportid.md)
- [HIDUsage](corehid/hidusage.md)
- [HIDDeviceError](corehid/hiddeviceerror.md)
- [HIDDeviceTransport](corehid/hiddevicetransport.md)
- [HIDDeviceLocalizationCode](corehid/hiddevicelocalizationcode.md)
