DeviceChannel Class¶
Namespace: id3.Devices
Definition¶
class DeviceChannel
class DeviceChannel implements Finalizable
public partial class DeviceChannel
public class DeviceChannel implements AutoCloseable, Serializable
typedef struct id3DevicesDeviceChannel *ID3_DEVICES_DEVICE_CHANNEL;
Usage¶
deviceChannelInstance = DeviceChannel()
# ...
Explicit destruction
# ...
del deviceChannelInstance
final deviceChannelInstance = sdk.DeviceChannel();
// ...
Explicit destruction
// ...
deviceChannelInstance.dispose()
using (var deviceChannelInstance = new DeviceChannel())
{
// ...
}
Explicit destruction
var deviceChannelInstance = new DeviceChannel()
// ...
deviceChannelInstance.Dispose()
try (DeviceChannel deviceChannelInstance = new DeviceChannel()) {
// ...
}
Explicit destruction
DeviceChannel deviceChannelInstance = new DeviceChannel();
// ...
deviceChannelInstance.close();
ID3_DEVICES_DEVICE_CHANNEL hDeviceChannel{};
int err = id3DevicesDeviceChannel_Initialize(&hDeviceChannel);
if (err == ID3_SUCCESS) {
// ...
id3DevicesDeviceChannel_Dispose(&hDeviceChannel);
}
Properties¶
Name |
Type |
Description |
---|---|---|
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. |
||
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 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. |