Class DeviceScannerModule
Wrapper around a single IDeviceScanner instance
Inherited Members
Namespace: NixUniversalSDK.Wrapper
Assembly: NixUniversalSDK.Wrapper.dll
Syntax
public class DeviceScannerModule
Fields
DefaultMaxReportCount
Default / fallback value for the max report length from the ScanResultDelegate callback.
Declaration
public const int DefaultMaxReportCount = 25
Field Value
Type | Description |
---|---|
int |
DefaultMaxReportIntervalMs
Default / fallback value for the max reporting interval from the ScanResultDelegate callback.
Declaration
public const int DefaultMaxReportIntervalMs = 250
Field Value
Type | Description |
---|---|
int |
Properties
ScanResultDelegate
Delegate linked to the internal ScanResult event
Declaration
public Delegates.StringValue? ScanResultDelegate { get; }
Property Value
Type | Description |
---|---|
Delegates.StringValue |
Examples
An example handler is shown below:
void OnScanResult(string senderName, string resultsJson)
{
// - `senderName` is "ScanResult"
// - `resultsJson` is a JSON array of scan results
// ...
}
The scan results are JSON formatted in the same manner as Scanner_GetSortedResults(int).
ScannerCreatedDelegate
Delegate linked to the internal ScannerCreated event
Declaration
public Delegates.IntValue? ScannerCreatedDelegate { get; }
Property Value
Type | Description |
---|---|
Delegates.IntValue |
Examples
An example handler is shown below:
void OnScannerCreated(string senderName, int deviceScannerState)
{
// - `senderName` is "ScannerCreated"
// - `deviceScannerState` is one of the
// `DeviceScannerState` values
// ...
}
ScannerStartedDelegate
Delegate linked to the internal ScannerStarted event
Declaration
public Delegates.Empty? ScannerStartedDelegate { get; }
Property Value
Type | Description |
---|---|
Delegates.Empty |
Examples
An example handler is shown below:
void OnScannerStarted(string senderName)
{
// - `senderName` is "ScannerStarted"
// ...
}
ScannerStoppedDelegate
Delegate linked to the internal ScannerStopped event
Declaration
public Delegates.Empty? ScannerStoppedDelegate { get; }
Property Value
Type | Description |
---|---|
Delegates.Empty |
Examples
An example handler is shown below:
void OnScannerStopped(string senderName)
{
// - `senderName` is "ScannerStopped"
// ...
}