HidDevice Class
Namespace: Yubico.Core.Devices.Hid Assembly: Yubico.Core.dllBase class for all HID devices represented by Yubico .NET-based SDKs.
public abstract class HidDevice : Object, IHidDevice, IDevice
Remarks
Yubico products, such as the YubiKey, can expose Human Interface Devices (HID) through their USB interfaces. The most common types of HIDs are keyboards and mice, but other types of devices exist as well. At this time, Keyboards and the custom "FIDO" type are the most interesting to this SDK. Implementations of this class should support finding all HID devices.
Constructors
Name | Description |
---|---|
HidDevice(String) | Constructs a HidDevice. |
Properties
Name | Description |
---|---|
LastAccessed | The time when this device was last accessed. |
ParentDeviceId | A unique identifier corresponding to the parent USB composite device, if available. |
Path | Gets the platform defined path to the device. |
ProductId | A hardware identifier indicating the product that this device represents. |
Usage | A HID-specific hardware identifier indicating the type of device this is. |
UsagePage | A HID-specific hardware identifier indicating the type of device this is. |
VendorId | A hardware identifier indicating the vendor of this device. |
Methods
Name | Description |
---|---|
ConnectToFeatureReports() | Opens a connection to the human interface device's feature reports. |
ConnectToIOReports() | Opens a connection to the human interface device's input/output reports. |
GetHidDevices() | Get a list of all the HIDs present on this computer. |
ToString() |