LibUsbDotNet 2.2.8
MonoUsbEventHandler Class
Library Reference ► MonoLibUsb ► MonoUsbEventHandler
|
![]() |
Manages a static Libusb-1.0 MonoUsbSessionHandle and "handle_events" thread for simplified asynchronous IO.

C# | Visual Basic | Visual C++ |
public static class MonoUsbEventHandler
Public NotInheritable Class MonoUsbEventHandler
public ref class MonoUsbEventHandler abstract sealed

All Members | Methods | Properties | |||
|
|
|
Icon | Member | Description |
---|---|---|
![]() ![]() |
Exit()()()() |
Stops the handle events thread and closes the session handle.
|
![]() ![]() |
Init(Int64, Int64) |
Initializes the SessionHandle and sets a custom polling interval.
|
![]() ![]() |
Init()()()() |
Initializes the SessionHandle.
|
![]() ![]() |
IsStopped |
False if the handle events thread is running.
|
![]() ![]() |
Priority |
Thread proirity to use for the handle events thread.
|
![]() ![]() |
SessionHandle |
Gets the session handle.
|
![]() ![]() |
Start()()()() |
Starts the handle events thread.
|
![]() ![]() |
Stop(Boolean) |
Stops the handle events thread.
|

This class contains its own MonoUsbSessionHandle that is initialized with one of the overloaded MonoUsbEventHandler.Init() functions.
This class contains a static thread that execute HandleEventsTimeout(MonoUsbSessionHandle, UnixNativeTimeval%). See the Start()()()() and Stop(Boolean) methods.

Object | |
![]() |
MonoUsbEventHandler |