BarcodeReader Class¶
Namespace: id3.Devices
Definition¶
class BarcodeReader
class BarcodeReader implements Finalizable
public partial class BarcodeReader
public class BarcodeReader implements AutoCloseable, Serializable
typedef struct id3DevicesBarcodeReader *ID3_DEVICES_BARCODE_READER;
Usage¶
barcodeReaderInstance = BarcodeReader()
# ...
Explicit destruction
# ...
del barcodeReaderInstance
final barcodeReaderInstance = sdk.BarcodeReader();
// ...
Explicit destruction
// ...
barcodeReaderInstance.dispose()
using (var barcodeReaderInstance = new BarcodeReader())
{
// ...
}
Explicit destruction
var barcodeReaderInstance = new BarcodeReader()
// ...
barcodeReaderInstance.Dispose()
try (BarcodeReader barcodeReaderInstance = new BarcodeReader()) {
// ...
}
Explicit destruction
BarcodeReader barcodeReaderInstance = new BarcodeReader();
// ...
barcodeReaderInstance.close();
ID3_DEVICES_BARCODE_READER hBarcodeReader{};
int err = id3DevicesBarcodeReader_Initialize(&hBarcodeReader);
if (err == ID3_SUCCESS) {
// ...
id3DevicesBarcodeReader_Dispose(&hBarcodeReader);
}
Properties¶
Name |
Type |
Description |
---|---|---|
Callback function triggered when new capture data becomes available from the device. |
||
Callback invoked when a device is added to the channel. |
||
Callback function for when a device is closed on this channel. |
||
(C++): Callback for generic device events. |
||
A list filtering the types of devices this channel will interact with. |
||
int |
Identifier for the device associated with this channel, intended for internal or plugin use. |
|
Fetches the device object. |
||
Callback that is called when a device is opened on this channel. |
||
Callback function triggered upon the removal of a device from the channel. |
||
Reflects the current state of the device, such as connected, disconnected, etc. |
||
Callback invoked when the device’s status changes, such as opening, closing, or starting live capture. |
||
bool |
Indicates whether the device is currently capturing data. |
|
Lists categories of parameters relevant to the device. |
Methods¶
Name |
Description |
---|---|
Adds a filter to specify the types of devices this channel should handle. |
|
Applies a set of parameters to the device. |
|
(C++/dotnet): Checks if a specific command is available on the device. |
|
Confirms if a parameter exists on the device. |
|
Clears all set device filters, removing any type restrictions. |
|
Controls closing the associated device. |
|
Retrieves the most recent data captured by the device. |
|
Retrieves a device parameter’s value. |
|
Fetches the descriptor of a device parameter. |
|
Obtains all supported parameters, optionally filtered by category. |
|
Retrieves names of all supported parameters, optionally filtered by category. |
|
Gets the integer value of a device parameter. |
|
Checks if the specified device was previously disconnected. |
|
Controls opening the associated device. |
|
(C++/dotnet): Issues a command to the device. |
|
(C++/dotnet): Issues a command with a boolean as result to the device. |
|
(C++/dotnet): Dispatches a command to the device model. |
|
Sets a device parameter’s value. |
|
Assigns an integer value to a device parameter. |
|
Initiates the data capture process, optionally taking a string parameter for configuration. |
|
Terminates the data acquisition process, halting data capture. |
|
Blocks until new capture data is available or a timeout occurs. |