init(deviceReference:)
Creates a client for a HID device.
Declaration
init?(deviceReference: HIDDeviceClient.DeviceReference)Parameters
- deviceReference:
The reference to the target HID device that arrive using Hiddevicemanager. For more details, see Devicereference Swift.struct.
Discussion
After creating a HIDDeviceClient, notifications about the associated device arrive in monitorNotifications(reportIDsToMonitor:elementsToMonitor:).