<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDDeviceClient/init(deviceReference:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID15HIDDeviceClientC15deviceReferenceACSgAC06DeviceF0V_tcfc"
  },
  "title" : "init(deviceReference:)"
}
-->

# init(deviceReference:)

Creates a client for a HID device.

```
init?(deviceReference: HIDDeviceClient.DeviceReference)
```

## Parameters

`deviceReference`

The reference to the target HID device that arrive using [`HIDDeviceManager`](/documentation/CoreHID/HIDDeviceManager). For more details, see [`HIDDeviceClient.DeviceReference`](/documentation/CoreHID/HIDDeviceClient/DeviceReference-swift.struct).

## Discussion

After creating a [`HIDDeviceClient`](/documentation/CoreHID/HIDDeviceClient), notifications about the associated device arrive in [`monitorNotifications(reportIDsToMonitor:elementsToMonitor:)`](/documentation/CoreHID/HIDDeviceClient/monitorNotifications(reportIDsToMonitor:elementsToMonitor:)).

---

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)