Table of Contents

Class UsbDeviceMonitor

Namespace
Huddly.Sdk
Assembly
Huddly.Sdk.dll
public sealed class UsbDeviceMonitor : IUsbDeviceMonitor, IDeviceMonitor, IDisposable
Inheritance
UsbDeviceMonitor
Implements
Inherited Members

Constructors

UsbDeviceMonitor(ILoggerFactory?, IUsbDiscovery, ICameraUsbClientMonitor)

public UsbDeviceMonitor(ILoggerFactory? loggerFactory, IUsbDiscovery discovery, ICameraUsbClientMonitor usbClientMonitor)

Parameters

loggerFactory ILoggerFactory
discovery IUsbDiscovery
usbClientMonitor ICameraUsbClientMonitor

Properties

IsMonitoring

public bool IsMonitoring { get; }

Property Value

bool

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetDevices()

public ISet<IDevice> GetDevices()

Returns

ISet<IDevice>

GetDiscoveryType()

public Type GetDiscoveryType()

Returns

Type

Resume()

public void Resume()

Start(SdkSession, int, CancellationToken)

public Task Start(SdkSession session, int timeout_ms = -1, CancellationToken ct = default)

Parameters

session SdkSession
timeout_ms int
ct CancellationToken

Returns

Task

Suspend()

public void Suspend()

TryGetDevice(string, out IDevice?)

public bool TryGetDevice(string deviceId, out IDevice? device)

Parameters

deviceId string
device IDevice

Returns

bool

Events

DeviceConnected

public event EventHandler<DeviceConnectionChangeEventArgs>? DeviceConnected

Event Type

EventHandler<DeviceConnectionChangeEventArgs>

DeviceDisconnected

public event EventHandler<DeviceConnectionChangeEventArgs>? DeviceDisconnected

Event Type

EventHandler<DeviceConnectionChangeEventArgs>