Table of Contents

Class DeviceTypeExtensions

Namespace
NixUniversalSDK
Assembly
NixUniversalSDK.dll

Extensions for the DeviceType enum.

public static class DeviceTypeExtensions
Inheritance
DeviceTypeExtensions
Inherited Members

Methods

GetDeviceType(byte)

Helper method to find the DeviceType enum that corresponds to a byte value. If an unknown byte value is provided, Unknown is returned.

public static DeviceType GetDeviceType(this byte value)

Parameters

value byte

Byte value to query

Returns

DeviceType

DeviceType enum corresponding to the byte value

GetDeviceType(string)

Helper method to find the DeviceType enum that corresponds to the name found during device advertisement. If an unknown name is provided, Unknown is returned.

public static DeviceType GetDeviceType(this string name)

Parameters

name string

Advertised name of from a Nix device

Returns

DeviceType

DeviceType enum corresponding to the advertised name

GetDeviceType(ushort, ushort)

Helper method to find the DeviceType enum that corresponds to a given USB vendor ID and product ID. If an unknown combination is provided, Unknown is returned.

public static DeviceType GetDeviceType(ushort vid, ushort pid)

Parameters

vid ushort

USB vendor ID from USB device

pid ushort

USB product ID from USB device

Returns

DeviceType

DeviceType enum corresponding to the provided vendor and product IDs

GetFullName(DeviceType)

Full name for device type, as advertised on Bluetooth

public static string GetFullName(this DeviceType type)

Parameters

type DeviceType

Returns

string

GetShortName(DeviceType)

Short name for the device type

public static string GetShortName(this DeviceType type)

Parameters

type DeviceType

Returns

string

IsFeatureSupported(DeviceType, LicenseFeature)

Defines if a particular feature is supported by a certain device type

public static bool IsFeatureSupported(this DeviceType type, LicenseFeature feature)

Parameters

type DeviceType
feature LicenseFeature

Returns

bool