Show / Hide Table of Contents

# Class IDeviceCompatExtensions

Extensions for IDeviceCompat instances.

##### Inheritance

object
IDeviceCompatExtensions

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: NixUniversalSDK

###### Assembly: NixUniversalSDK.dll

##### Syntax

    public static class IDeviceCompatExtensions

### Methods

#### HasOptions(IDeviceCompat)

Flag to indicate if any on-device options are available. Value is `true` if any one of SupportsFieldCalibration, SupportsTemperatureCompensation, SupportsHapticFeedback, or SupportsRgbFeedback is true.

##### Declaration

    public static bool HasOptions(this IDeviceCompat device)

##### Parameters

Type | Name | Description
--- | --- | ---
IDeviceCompat | device |

##### Returns

Type | Description
--- | ---
bool |

#### IsFeatureSupported(IDeviceCompat, LicenseFeature)

Helper to check if a particular LicenseFeature is supported by this device.

##### Declaration

    public static bool IsFeatureSupported(this IDeviceCompat device, LicenseFeature feature)

##### Parameters

Type | Name | Description
--- | --- | ---
IDeviceCompat | device |
LicenseFeature | feature |

##### Returns

Type | Description
--- | ---
bool |

#### IsModeSupported(IDeviceCompat, ScanMode)

Helper to check if a particular scan mode is supported by this device (i.e. - checks if the mode is present in the SupportedModes list). This value is valid only after a connection has successfully been opened.

##### Declaration

    public static bool IsModeSupported(this IDeviceCompat device, ScanMode mode)

##### Parameters

Type | Name | Description
--- | --- | ---
IDeviceCompat | device |
ScanMode | mode |

##### Returns

Type | Description
--- | ---
bool |

#### ProvidesColor(IDeviceCompat, Illuminant, Observer)

Helper to check if a particular reference white point is supported by the colorimetry data from this device (i.e - checks if the reference is present in the SupportedReferences list`).

##### Declaration

    public static bool ProvidesColor(this IDeviceCompat device, Illuminant illuminant, Observer observer)

##### Parameters

Type | Name | Description
--- | --- | ---
IDeviceCompat | device |
Illuminant | illuminant |
Observer | observer |

##### Returns

Type | Description
--- | ---
bool |

#### ProvidesColor(IDeviceCompat, ReferenceWhite)

Helper to check if a particular reference white point is supported by the colorimetry data from this device (i.e - checks if the reference is present in the SupportedReferences list`).

##### Declaration

    public static bool ProvidesColor(this IDeviceCompat device, ReferenceWhite reference)

##### Parameters

Type | Name | Description
--- | --- | ---
IDeviceCompat | device |
ReferenceWhite | reference |

##### Returns

Type | Description
--- | ---
bool |