• Docs
  • API
Show / Hide Table of Contents
  • NixUniversalSDK
    • BatteryStateEventArgs
    • ColorData
    • ColorDifferenceType
    • ColorDifferenceTypeExtensions
    • ColorType
    • ColorTypeExtensions
    • ColorUtils
    • CommandStatus
    • CommandStatusExtensions
    • DensityData
    • DensityStatus
    • DensityStatusExtensions
    • DeviceCompat
    • DeviceResult
    • DeviceScanner
    • DeviceScannerState
    • DeviceScannerStateExtensions
    • DeviceState
    • DeviceStateExtensions
    • DeviceStatus
    • DeviceStatusArgs
    • DeviceStatusExtensions
    • DeviceType
    • DeviceTypeExtensions
    • DeviceVersion
    • ExtPowerStateEventArgs
    • IColorData
    • IColorDataExtensions
    • IDensityData
    • IDeviceCompat
    • IDeviceCompatEvents
    • IDeviceCompatExtensions
    • IDeviceScanner
    • IDeviceScannerEvents
    • IMeasurementData
    • IMeasurementDataExtensions
    • ISpectralData
    • ISpectralDataExtensions
    • Illuminant
    • IlluminantExtensions
    • InterfaceType
    • InterfaceTypeExtensions
    • LicenseFeature
    • LicenseFeatureExtensions
    • LicenseManager
    • LicenseManagerState
    • MeasurementData
    • Observer
    • ObserverExtensions
    • ReferenceWhite
    • ReferenceWhiteExtensions
    • ScanMode
    • ScanModeExtensions
    • ScanResultEventArgs
    • ScannerCreatedEventArgs
    • SpectralData
  • NixUniversalSDK.Wrapper
    • Constants
    • Delegates
    • Delegates.BoolValue
    • Delegates.Empty
    • Delegates.IntValue
    • Delegates.StringValue
    • DeviceCompatModule
    • DeviceScannerModule
    • Exported

Class LicenseManager

Class used to manage the license for the Nix Universal SDK. Access to a single shared instance is provided via static functions.

Inheritance
object
LicenseManager
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 class LicenseManager

Properties

Allocations

List of Nix device allocation codes associated with the current license.

Declaration
public static ICollection<string> Allocations { get; }
Property Value
Type Description
ICollection<string>

AllowedDeviceTypes

Set of device types supported by the current license.

Declaration
public static ISet<DeviceType> AllowedDeviceTypes { get; }
Property Value
Type Description
ISet<DeviceType>

Expiry

Expiry date for the current license

Declaration
public static DateTime Expiry { get; }
Property Value
Type Description
DateTime

Features

Set of features enabled by the current license.

Declaration
public static ISet<LicenseFeature> Features { get; }
Property Value
Type Description
ISet<LicenseFeature>

LibraryVersion

Current version of the Nix Universal SDK.

Declaration
public static string LibraryVersion { get; }
Property Value
Type Description
string

State

Describes the current state of the LicenseManager. Nix Universal SDK functions are available only if license is active (i.e. - the state is Active).

Declaration
public static LicenseManagerState State { get; }
Property Value
Type Description
LicenseManagerState

Uuid

Vendor identifier for the current license.

Declaration
public static string Uuid { get; }
Property Value
Type Description
string

Methods

Activate(string, string)

Activates a license. The options and signature parameters must exactly match the values provided in the SDK license. Calling this function invalidates any currently active license.

Declaration
public static LicenseManagerState Activate(string options, string signature)
Parameters
Type Name Description
string options

License options

string signature

License signature, used to validate the license options.

Returns
Type Description
LicenseManagerState

License manager state after activation

Deactivate()

Deactivates the current license.

Declaration
public static void Deactivate()

IsDeviceTypeSupported(DeviceType)

Helper to check if a particular DeviceType is supported by the current license.

Declaration
public static bool IsDeviceTypeSupported(DeviceType type)
Parameters
Type Name Description
DeviceType type
Returns
Type Description
bool

IsFeatureEnabled(LicenseFeature?)

Helper to check if a particular LicenseFeature is enabled by the current license.

Declaration
public static bool IsFeatureEnabled(LicenseFeature? feature)
Parameters
Type Name Description
LicenseFeature? feature
Returns
Type Description
bool
In this article
Back to top Generated by DocFX